0

What does the following do on Linux?

cat <> FIFO |

Where FIFO is a FIFO created in the current directory.

0
3

in bash the redirection operator <> causes a file to be opened for both reading and writing (on file descriptor 0 by default, although you can specify another).

see the bash manual page on redirections, section 3.6.10

0

You can't both read and write onto the same pipe.

1
  • I think the final pipe is a typo. Someone should edit. – Tobu Jun 13 '10 at 20:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy