2006/1/29, Nick Pilon <[EMAIL PROTECTED]>: > The fish manual says: > > "DESTINATION can be one of the following: > (...) > * A minus sign (-). The file descriptor will be closed." > > This doesn't seem to work in fish 1.20.1 under Mac OS X. echo Foobar > >- literally writes to a file named "-". > > Is the manual simply out of date, or is this a bug?
The manual is slightly wrong, it should be &-, i.e. 2>&- to close stderr. This is the same syntax bash uses, though I don't know if this is standard Posix or a bash extension. Thanks for pointing it out, the manual has now been corrected. > > -- > -Nick Pilon -- Axel
