Closed 5long closed 5 months ago
Oh, this one's nasty. We do have a test for this feature, but test builds include the assert_cmd
dependency, which includes the predicates
dependency, which enables the unicode-perl
feature for regex
, "fixing" the problem.
Two more things went wrong:
\d
instead of [0-9]
\d
, disabling the default features for regex
I wonder if we could use non-test builds for the end-to-end tests. But this feature only has a unit test, so it wouldn't have helped here. And missing features should mostly cause problems at compile time, not runtime, regex
is a special case.
This is now fixed in xh v0.21.0
Environment
Steps to Reproduce
head -c100 > partial.iso
xh -p= -dcF --check-status -o partial.iso https://geo.mirror.pkgbuild.com/iso/latest/archlinux-x86_64.iso
Expected Result
Continues download from position 100 bytes. Works like
curl -L -C - -f -o partial.iso https://geo.mirror.pkgbuild.com/iso/latest/archlinux-x86_64.iso
Actual Result
xh
crashes with the following message:Side note
Actually, this is already fixed with c9162b6a7498832c23095d9a81866ea847eece42. But there's no release available yet.