Why is stdin always a pipe?
David Macek
david.macek.0@gmail.com
Fri Jul 20 14:52:00 GMT 2018
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4002 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20180720/7f33609b/attachment.p7s>
More information about the Cygwin
mailing list