Re: [Help-bash] Where is the usage like "exec 3<> File" documented?
From:
Dave Rutherford
Subject:
Re: [Help-bash] Where is the usage like "exec 3<> File" documented?
Date:
Sat, 14 Mar 2015 16:37:47 -0400
On Sat, Mar 14, 2015 at 3:39 PM, Peng Yu <address@hidden> wrote:
> Man bash says the following. But should "3<> File" be considered as command?
>
> exec [-cl] [-a name] [command [arguments]]
> If command is specified, it replaces the shell.
[...]
> How to understand "exec 3<> File" then?
`man bash' says more than what you quoted. Look to the penultimate
sentence of that paragraph:
If command is not specified, any redirections take
effect in the current shell, and the return status is 0.