mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:13:33 +03:00
- Nick made the curl tool accept globbing ranges that only is one number, i.e
you can now use [1-1] without curl complaining.
This commit is contained in:
parent
9189ac1141
commit
b169aa2992
2 changed files with 5 additions and 1 deletions
4
CHANGES
4
CHANGES
|
|
@ -6,6 +6,10 @@
|
||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
|
Daniel (15 March 2007)
|
||||||
|
- Nick made the curl tool accept globbing ranges that only is one number, i.e
|
||||||
|
you can now use [1-1] without curl complaining.
|
||||||
|
|
||||||
Daniel (10 March 2007)
|
Daniel (10 March 2007)
|
||||||
- Eygene Ryabinkin:
|
- Eygene Ryabinkin:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,7 @@ static GlobCode glob_range(URLGlob *glob, char *pattern,
|
||||||
|
|
||||||
rc = sscanf(pattern, "%d-%d%c%d%c", &min_n, &max_n, &sep, &step, &sep2);
|
rc = sscanf(pattern, "%d-%d%c%d%c", &min_n, &max_n, &sep, &step, &sep2);
|
||||||
|
|
||||||
if ((rc < 2) || (min_n >= max_n)) {
|
if ((rc < 2) || (min_n > max_n)) {
|
||||||
/* the pattern is not well-formed */
|
/* the pattern is not well-formed */
|
||||||
snprintf(glob->errormsg, sizeof(glob->errormsg),
|
snprintf(glob->errormsg, sizeof(glob->errormsg),
|
||||||
"error: bad range specification after pos %d\n", pos);
|
"error: bad range specification after pos %d\n", pos);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue