[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error in manual for >&word redirection
From: |
Stephane CHAZELAS |
Subject: |
Re: Error in manual for >&word redirection |
Date: |
Thu, 13 Oct 2011 06:33:56 +0000 (UTC) |
User-agent: |
slrn/pre1.0.0-18 (Linux) |
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