[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Proposed usage of $-
From: |
Chet Ramey |
Subject: |
Re: [Help-bash] Proposed usage of $- |
Date: |
Mon, 14 Jan 2013 10:33:59 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
On 1/14/13 9:00 AM, Greg Wooledge wrote:
> On Mon, Jan 14, 2013 at 09:07:54AM +0100, Mart Frauenlob wrote:
>> The particular script, which brought this all up for me, as it won't
>> work in posix mode, quits on error on process substitution:
>>
>> line 199: syntax error near unexpected token `<'
>> line 199: ` done < <(some_command_generating_a_list)'
>
> Well, obviously you can't use non-POSIX features in "bash -posix".
That's not strictly true; Posix mode doesn't turn off everything that
Posix doesn't specify. Process substitution, however, is one of the
things the Posix mode disables.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/