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

Re: POSIX shell specification insight requested



On Tue, 2 Mar 2004, Adam Heath wrote:

> On Tue, 2 Mar 2004, Manoj Srivastava wrote:
>
> > § 3.6.3  Command substitution
> >
> >  ...
> >
> > lines 474-477
> >
> >  Within the $(command) form, all characters following the open
> >  parenthesis to the  matching closing parenthesis constitute the
> >  /command/. Any valid shell script can be used for /command/, except
> >
> >   -- A script consisting solely of redirections produces unspecified
> >      results
>
> You need to show us what posix defines as a command.

For instance, I don't understand how a script that contains only redirections
can be a command.  Ie:

1>&2 2>&3 3>&4



Reply to: