Keith Thompson wrote on Mon, Apr 03, 2023 at 10:15:40PM -0700:
> The GNU coreutils seq command recognizes and handles negative
> arguments.
> 
> The busybox seq command does not. Any argument starting with a '-'
> character is assumed to be an option name.
> 
> There is a (rather inconvenient) workaround: you can add a leading
> space, which is ignored.

You can also use '--' to stop parsing options and feels a bit more
standard than leading spaces.

$ busybox seq -- -2 2
-2
-1
0
1
2

Commands like busybox tail handle ±digit, so I assume something similar
can be done but that will be a bit convoluted to make it work the same
way when there are other arguments first...

-- 
Dominique Martinet | Asmadeus
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to