Re: Error in manual for >&word redirection

2011-10-14 Thread Chet Ramey
On 10/12/11 4:07 PM, Greg Wooledge wrote: > Personally I wish all the csh compatibility features would go away forever, > but I appreciate that it's too late to remove them at this point. But > I think the manual should be updated to indicate that the >&word form > just plain fails for certain wo

Re: Error in manual for >&word redirection

2011-10-13 Thread Greg Wooledge
On Thu, Oct 13, 2011 at 06:33:56AM +, Stephane CHAZELAS wrote: > 2011-10-12, 14:39(-06), Eric Blake: > > foo >&./1 > > Or > > foo >&! 1 > > or > > foo &> 1 > > or > > foo > 1 2>&1 So put those in the manual! ;-)

Re: Error in manual for >&word redirection

2011-10-12 Thread Stephane CHAZELAS
2011-10-12, 14:39(-06), Eric Blake: > On 10/12/2011 02:07 PM, Greg Wooledge wrote: >> Even using a space is not sufficient to force a valid file descriptor number >> to be treated as a filename: >> >> imadev:~$ foo>& 1 >> stdout >> stderr >> imadev:~$ ls -l 1 >> 1 not found > > If you want 'word'

Re: Error in manual for >&word redirection

2011-10-12 Thread Eric Blake
On 10/12/2011 02:07 PM, Greg Wooledge wrote: Even using a space is not sufficient to force a valid file descriptor number to be treated as a filename: imadev:~$ foo>& 1 stdout stderr imadev:~$ ls -l 1 1 not found If you want 'word' treated as a filename, then express it as a filename. It's

Re: Error in manual for >&word redirection

2011-10-12 Thread Andreas Schwab
Greg Wooledge writes: > Personally I wish all the csh compatibility features would go away forever, > but I appreciate that it's too late to remove them at this point. But > I think the manual should be updated to indicate that the >&word form > just plain fails for certain words, even with a sp

Error in manual for >&word redirection

2011-10-12 Thread Greg Wooledge
The manual says: Redirecting Standard Output and Standard Error This construct allows both the standard output (file descriptor 1) and the standard error output (file descriptor 2) to be redirected to the file whose name is the expansion of word. There are two formats