PDA

View Full Version : bash filedescriptors



go_beep_yourself
November 23rd, 2007, 11:00 PM
What does this do in bash?

command >&- 2>&-

dwhitney67
November 24th, 2007, 01:57 AM
Here's you answer:

Something stupid. It will create a file called "-" in the local directory, undoubtedly containing the error from doing "command >&-".