[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Proposed usage of $-
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] Proposed usage of $- |
Date: |
Mon, 14 Jan 2013 09:00:00 -0500 |
User-agent: |
Mutt/1.4.2.3i |
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".
arc3:~$ bash -c 'cat < <(echo hi)'
hi
arc3:~$ bash -posix -c 'cat < <(echo hi)'
bash: -c: line 0: syntax error near unexpected token `<'
bash: -c: line 0: `cat < <(echo hi)'