bugGNU Core Utilities - Bugs: bug #24182, (Wishlist) stty -a Behavior...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #24182: (Wishlist) stty -a Behavior Documentation

Submitted by:  David L. Craig <dlcusa>
Submitted on:  Mon 01 Sep 2008 04:31:33 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon 01 Sep 2008 08:36:39 PM UTC, comment #2:

A pipeline is not a tty. I think Andreas is correct; the documentation in --help is already sufficient, even if it is terse, at mentioning that stty is not useful when stdin is not a terminal, so I'm closing this report. If you still feel that more documentation is needed, then please write a patch against stty.c or coreutils.texi with the proposed wording.

Eric Blake <ericb>
Project Administrator
Mon 01 Sep 2008 04:44:17 PM UTC, comment #1:

$ stty --help
[...]
Handle the tty line connected to standard input.
[...]

Andreas Schwab <schwab>
Mon 01 Sep 2008 04:31:33 PM UTC, original submission:

On different platforms stty -a doesn't like being invoked inside a pipeline; e.g.,

dlc@muse:~$ cat /dev/null | stty -a
stty: standard input: Invalid argument
dlc@muse:~$ stty -a </dev/null
stty: standard input: Inappropriate ioctl for device
dlc@muse:~$ cat /dev/null | : `stty -a`
stty: standard input: Invalid argument
dlc@muse:~$ cat /dev/null | : `stty -a </dev/tty`
dlc@muse:~$

Note the last example worked. This was on a Debian Sid system.

Please document this behavior.

David L. Craig <dlcusa>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ericb (Posted a comment)
  • -unavailable- added by schwab (Posted a comment)
  • -unavailable- added by dlcusa (Submitted the item)
  • -unavailable- added by dlcusa
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 01 Sep 2008 08:36:39 PM UTCericbStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Mon 01 Sep 2008 04:31:34 PM UTCdlcusaCarbon-Copy-=>Added dlcusa

    Back to the top


    Powered by Savane 3.1-cleanup1