bash getting a fd of a pipe

Posted by k0re on Stack Overflow See other posts from Stack Overflow or by k0re
Published on 2010-06-02T13:18:45Z Indexed on 2010/06/02 13:24 UTC
Read the original article Hit count: 124

Filed under:
|
|

Hi,

Why does the following not work?

exec 3<|cat $0

The idea is to get file-descriptor (3) of a pipe (| cat $0).

© Stack Overflow or respective owner

Related posts about linux

Related posts about bash