GNU bug report logs - #27128
fold -b wants no immediate space, otherwise mistakes number as filename

Previous Next

Package: coreutils;

Reported by: openforum <at> davidpbrown.co.uk

Date: Mon, 29 May 2017 16:00:03 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: davidpbrown <openforum <at> davidpbrown.co.uk>
To: bug-coreutils <at> gnu.org
Subject: fold -b wants no immediate space, otherwise mistakes number as
 filename
Date: Mon, 29 May 2017 16:42:53 +0100
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




This bug report was last modified 7 years and 356 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.