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' treated as a filename, then express it as a filename. > It's still possible to write to a file named '1': > > foo >&./1
Or foo >&! 1 or foo &> 1 or foo > 1 2>&1 -- Stephane