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

Re: POSIX shell specification insight requested



Scripsit Manoj Srivastava <srivasta@debian.org>

>   -- A script consisting solely of redirections produces unspecified
>      results 
> ======================================================================

> 	The here document is a redirection, hence the reults of that
>  command substitution are unspecified.

No, it is only unspecified if the script consists *solely* of
redirections. This one consists of an invocation of /bin/cat, plus a
redirection.

"A script consisting solely of redirections" might be

foo=$( </etc/motd )

which, say, dash and bash take to mean two different things.

-- 
Henning Makholm                        "Detta, sade de, vore rena sanningen;
                                 ty de kunde tala sanning lika väl som någon
                             annan, när de bara visste vad det tjänade til."



Reply to: