Hi,

Anton Zinoviev <an...@lml.bas.bg> (25/02/2011):
> Testing the standard output and standard input never worked because
> they are redirected by Debconf.  In particular /usr/bin/tty outputs
> "not a tty".  For a long time the following code worked:
> 
>     case `readlink /proc/self/fd/2` in
>         /dev/tty[0-9]*|/dev/vc/[0-9]*|/dev/console)
>             echo we ARE on the Linux console.

FWIW, /proc/self/fd only exists on Linux.

KiBi.

Attachment: signature.asc
Description: Digital signature

Reply via email to