Package: libc6
Version: 2.11.2-10

ttyname() should return the name of the tty device in a form than can
be used by other processes (with different controlling terminals) to
open it.

Steps to reproduce:

  $ perl -e 'use POSIX; printf "%s\n", ttyname(STDIN)'
  /dev/pts/117
  $ perl -e 'use POSIX; printf "%s\n", ttyname(STDIN)' </dev/tty
  /dev/tty
  $ tty
  /dev/pts/117
  $ tty </dev/tty
  /dev/tty
  $

Expected output: in a normal xterm or ssh session, `tty </dev/tty'
should produce the same output as `tty'.

Thanks,
Ian.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to