[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sh(1) man page bug(s?)



On Mon, Mar 15, 2004 at 03:13:54AM -0500, Ted Unangst wrote:
> > 
> > From zsh:
> > `|&' is shorthand for `2>&1 |', which connects both the
> > standard output and the standard error of the command to
> > the standard input of the next.
> 
> that's how it works in csh, but not sh.
> 
> $ ls |& more
> [1] 1560
> Missing filename ("less --help" for help)
> [1] + Done                 ls 
> 

there is still a problem. ksh(1) describes this under `Co-processes'.
that syntax is not described in posix, and i presume the reason why it's
not listed in sh(1).

however, it seems to me that this stuff (i.e. `|&') will work if you're
using /bin/sh (as apposed to /bin/ksh). if it's not meant to be in that
page, that's fine. but then there is no good reason for sh(1) to even
document `|&'.

either co-process stuff should be in there, or not. (but i don't know
which)

jmc