cut numbering inconsistency

Robert Schumann betulichergutmensch at googlemail.com
Thu Mar 15 16:33:44 UTC 2012


Heyho guys,

tested with 1.18.2 and with 1.19.3:

*GNU cut*:
% echo "foo:bar" | cut -d':' -f0
cut: fields and positions are numbered from 1
Try `cut --help' for more information.

% echo "foo:bar" | cut -d':' -f1
foo


*busybox cut*:
% echo "foo:bar" | busybox cut -d':' -f0
foo

% echo "foo:bar" | busybox cut -d':' -f1
foo


Cheers
Robert


More information about the busybox mailing list