bug-bash
[Top][All Lists]
Advanced

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

Re: Error in manual for >&word redirection


From: Eric Blake
Subject: Re: Error in manual for >&word redirection
Date: Wed, 12 Oct 2011 14:39:58 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110928 Fedora/3.1.15-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.4 Thunderbird/3.1.15

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

--
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]