mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:23:39 +03:00
curl/var: change byte offset syntax for assignments
Follow-up to 40c264db61 after discussions on IRC.
The new style is
name[0-99]=contents
and
name[0-99]@filename
A) This does not cause the same problems with old curl versions trying
the new syntax as this way will cause old curls just fail with syntax
error and not risk using the wrong file.
B) Adds the same byte range support for "normal" assigns, which the
previous syntax did not. Thus lets a user get a partial content of a
variable etc.
Added test 790 and 791 to verify non-file assigns with ranges.
Closes #15862
This commit is contained in:
parent
e7b90dadb2
commit
c2d37463b9
11 changed files with 167 additions and 42 deletions
|
|
@ -110,7 +110,7 @@ test727 test728 test729 test730 test731 test732 test733 test734 test735 \
|
|||
test736 test737 test738 test739 test740 test741 test742 \
|
||||
\
|
||||
test780 test781 test782 test783 test784 test785 test786 test787 test788 \
|
||||
test789 \
|
||||
test789 test790 test791 \
|
||||
\
|
||||
test799 test800 test801 test802 test803 test804 test805 test806 test807 \
|
||||
test808 test809 test810 test811 test812 test813 test814 test815 test816 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue