bug-bash
[Top][All Lists]
Advanced

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

`read' not accepting input from stdin


From: Scott Mcdermott
Subject: `read' not accepting input from stdin
Date: Fri, 16 Jul 2004 13:29:10 -0400
User-agent: Mutt/1.4.1i

I'm confused about this behavior:

        $ unset REPLY
        $ echo testing | read
        $ echo $REPLY

echos a newline only (from echo).  But this:

        $ echo testing > tmpfile
        $ read < tmpfile
        $ echo $REPLY
        testing

has expected behavior of setting REPLY from stdin.

Seems to me, should be the same behavior in both cases.

Is this expected behavior?




reply via email to

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