coreutils v 8.25-2ubuntu2

fold -b error wanting no space before the number, inconsistent with
expectation and -w


Error:

$ echo "abcdefghijklm"  | fold -b 6
fold: 6: No such file or directory


inconsistent with -w

$ echo "abcdefghijklm"  | fold -w6
abcdef
ghijkl
m

$ echo "abcdefghijklm"  | fold -w 6
abcdef
ghijkl
m


but works with:

$ echo "abcdefghijklm"  | fold -b6
abcdef
ghijkl
m


Regards
davidpbrown



Reply via email to