Bug#623356: live-build: be more careful with subshells

2011-04-23 Thread Daniel Baumann
On 04/20/2011 01:45 PM, Jonathan Nieder wrote: { and } are in POSIX. See XCU 2.9.4.1 Grouping Commands at http://unix.org/2008edition/: so posh (and other shells) needs to be updated then. -- Address:Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern Email:

Bug#623356: live-build: be more careful with subshells

2011-04-23 Thread Jonathan Nieder
Daniel Baumann wrote: On 04/20/2011 01:45 PM, Jonathan Nieder wrote: { and } are in POSIX. See XCU 2.9.4.1 Grouping Commands at http://unix.org/2008edition/: so posh (and other shells) needs to be updated then. Hmm... | $ posh -c '{ echo hi;}' | hi | $ echo $? | 0 | $ dpkg-query -W posh |

Bug#623356: live-build: be more careful with subshells

2011-04-20 Thread Daniel Baumann
retitle 623356 be more careful with subshells thanks On 04/19/2011 04:38 PM, liandrosg wrote: In bash, and dash, the Grouping Commands builtin structure commands are (list) or {list;} The first of these executes the commands in a subshell. The second form does not fork another shell so is

Bug#623356: live-build: be more careful with subshells

2011-04-20 Thread Jonathan Nieder
Hi, Daniel Baumann wrote: {} as grouping is not posix compatible, therefore it should not be used in live-build. do you know a posix-compliant way of fixing it? { and } are in POSIX. See XCU 2.9.4.1 Grouping Commands at http://unix.org/2008edition/: { compound-list;} Execute

Bug#623356: live-build: be more careful with subshells

2011-04-19 Thread liandrosg
Package: live-build Version: 3.0~a11-1 Severity: normal In bash, and dash, the Grouping Commands builtin structure commands are (list) or {list;} The first of these executes the commands in a subshell. The second form does not fork another shell so is slightly more efficient. Simple