[Top][All Lists]

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

test -r /dev/stdin fails in configure

From: Matthias Benkmann
Subject: test -r /dev/stdin fails in configure
Date: Sat, 6 Oct 2001 18:54:06 +0200

From: bash
To: address@hidden
Subject: test -r /dev/stdin fails in configure

Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -
DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-pc-linux-gnu' -
I. -I./include -I./lib -I/usr/include -g -O2
uname output: Linux buddha 2.2.17 #1 Fri Feb 2 14:06:58 CET 2001 i586 
Machine Type: i586-pc-linux-gnu

Bash Version: 2.05
Patch Level: 0
Release Status: release

        When I log in as root, then su to a normal user account, /dev/tty?
        remains owned by root. Because /dev/tty? is not world-readable,
          test -r /dev/tty? 
        Because /dev/stdin is a symlink to /dev/fd/0 which is a symlink to
        /dev/tty?, test -r /dev/stdin fails, too.
        Bash's configure script uses test -r /dev/stdin to test if /dev/stdin
        is available, so bash erroneously believes that /dev/stdin is not

        log in as root (Linux text console, no X)
        su to an unpriviledged user account (I'm using the su from the
          shadow package, not sh-utils)
        cd bash-2.05
        bash reports
          checking whether /dev/fd is available... absent
          checking whether /dev/stdin stdout stderr are available... absent
        even though /dev/fd and /dev/stdin are available and functional.  

        I see no reason for testing with -r. A simple test -e should be

If everything seems to be going well, you have obviously overlooked something.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]