[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Oddity In stty



On Sun, 31 Aug 2008, David L. Craig wrote:
> On Sun, 2008-08-31 at 17:35 -0400, David L. Craig wrote:
> > I can't figure this out.  Why does the first pipeline suceed but the second fails?
> > I'm running an up-to-date Sid.
> > 
> > dlc@muse:~$                 fold -w `stty -a | head -1 | awk '{print $7}' | tr -d ';'` < /dev/null
> > dlc@muse:~$ cat /dev/null | fold -w `stty -a | head -1 | awk '{print $7}' | tr -d ';'`
> > stty: standard input: Invalid argument
> > fold: option requires an argument -- w
> > Try `fold --help' for more information.
> > dlc@muse:~$ 
> 
> Well, I figured out a way around it:  stty -a </dev/tty
> Solaris behaves similarly.  I'm surprised this isn't
> documented behavior.

You can file a wishlist bug against coreutils, asking for the documentation
update...

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


Reply to: