[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line leng
From: |
Stefano Lattarini |
Subject: |
Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files |
Date: |
Sat, 14 Jul 2012 23:49:17 +0200 |
On 07/14/2012 10:56 PM, Eric Blake wrote:
> On 07/14/2012 12:25 PM, Stefano Lattarini wrote:
>
>>>
>>> <file command
>>>
>>> is portable, but
>>>
>>> <file { compound command; }
>>>
>>> is not. That is, only simple commands allow you to position a
>>> redirection before the rest of the command. 'while' is a compound
>>> command, so the redirection must come last.
>>>
>> Quick and helpful as usual :-) Thanks Eric.
>>
>> One question though: is "<file { compound command; }" also non-portable
>> if we limit ourselves to POSIX shells?
>
> [SNIP]
>
> That is, it's hard-coded into the POSIX shell grammar that a
> simple_command can start with redirections in the cmd_prefix, but a
> compound_command can ONLY have redirections after the end of the
> compound command, if you are being portable to POSIX.
>
Ah, OK. So it is not only non-portable, it is also non-POSIX-conforming.
Thanks for the explanation,
Stefano
- Re: [Automake-NG] [PATCH 2/3] [ng] coverage: distributing lots of files, (continued)
- [Automake-NG] [PATCH 1/3] [ng] dist: memoize some internal variables, Stefano Lattarini, 2012/07/13
- [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files, Stefano Lattarini, 2012/07/13
- Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files, Akim Demaille, 2012/07/14
- Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files, Stefano Lattarini, 2012/07/14
- Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files, Eric Blake, 2012/07/14
- Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files, Stefano Lattarini, 2012/07/14
- Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files, Eric Blake, 2012/07/14
- Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files,
Stefano Lattarini <=
- Re: [Automake-NG] [PATCH 3/3] [ng] dist: do not exceed command line length limits, even with many files, Akim Demaille, 2012/07/18
Re: [Automake-NG] [PATCH 0/3] Distribute many files without hitting command line length limits, Stefano Lattarini, 2012/07/16