GNU bug report logs - #7085
fmt (GNU coreutils) 6.10

Previous Next

Package: coreutils;

Reported by: "Denis M. Wilson" <dmw <at> oxytropis.plus.com>

Date: Wed, 22 Sep 2010 20:23:01 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


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

From: William Plusnick <pwplusnick2 <at> gmail.com>
To: Bob Proulx <bob <at> proulx.com>
Cc: 7085 <at> debbugs.gnu.org
Subject: Re: bug#7085: fmt (GNU coreutils) 6.10
Date: Wed, 29 Sep 2010 15:20:31 -0500
> Isn't the more modular flow that Eric suggested more in keeping with
> the Unix philosophy and the better solution?  If you want to do both
> stripping of carriage returns and word wrapping together then you can
> pipe them together.
>
>   tr -d '\r' < somefile | fmt
>
> Or if you are calling it as a stdin filter such as within an editor:
>
>   tr -d '\r' | fmt
>
> Bob
>
Yes, it is indeed. I don't know exactly why I chose to try (and
ultimately fail) writing that patch. I think the koan ESR wrote for
The Rootless Root: The Unix Koans Of Master Foo has some truth to it:
“There is more Unix-nature in one line of shell script than there is
in ten thousand lines of C.”

Finally in true koan fashion, "I am enlightened." :^)

William




This bug report was last modified 13 years and 308 days ago.

Previous Next


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