What does the following do on Linux?

cat <> FIFO |

Where FIFO is a FIFO created in the current directory.

link|improve this question
feedback

migrated from stackoverflow.com Aug 17 '09 at 3:17

This question came from our site for professional and enthusiast programmers.

2 Answers

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

link|improve this answer
feedback

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

link|improve this answer
I think the final pipe is a typo. Someone should edit. – Tobu Jun 13 '10 at 20:49
feedback

Your Answer

 
or
required, but never shown