Oddity In stty



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:~$

--

May the LORD God bless you exceedingly abundantly!

Dave Craig

- - - - - - - - - - - - - - - - - - - -
"'So the universe is not quite as you thought it was.
You'd better rearrange your beliefs, then.
Because you certainly can't rearrange the universe.'"

--from _Nightfall_ by Asimov/Silverberg


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Oddity In stty
    ... stty: standard input: Invalid argument ... Try `fold --help' for more information. ... Solaris behaves similarly. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Oddity In stty
    ... Try `fold --help' for more information. ... documented behavior. ... "One disk to rule them all, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: how to tail w/o folding the output?
    ... Dave Sherohman wrote: ... How do you run tail and not have it fold the output? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: how to tail w/o folding the output?
    ... How do you run tail and not have it fold the output? ... back to "regular" display mode, you can do stuff like searching ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: how to tail w/o folding the output?
    ... How do you run tail and not have it fold the output? ... The freedoms that we enjoy presently are the most important victories of the ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)