Use -- before seq for negative numbers

busybox seq was complaining about the command:

    seq -550 -1

because it was trying to interpret -550 as a flag. Use -- to prevent
this.
This commit is contained in:
ridiculousfish 2022-10-23 13:42:53 -07:00
parent c3274c3579
commit 74fd66fcbe

View file

@ -26,7 +26,7 @@ function empty_return
return $argv[1]
end
for i in (seq -550 -1)
for i in (seq -- -550 -1)
empty_return $i
if test $status -eq 0
echo returning $i from a fish script maps to a $status of 0!