This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why is stdin always a pipe?


Hi.  I see this:

$ [[ -p /dev/stdin ]] && echo pipe || echo nopipe
nopipe
$ [[ -t /dev/stdin ]] && echo term || echo noterm
noterm

Am I missing something?  I tested various scenarios and stdin is never a pipe, neither a tty for me.

--
David Macek

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]