Re: if then elif then else fi -- Problem report

2010-07-06 Thread Sven Mascheck
On Tue, Jul 06, 2010 at 05:18:54PM +0930, Malcolm Kay wrote: > I recall seeing and even playing with an implementation of > the Almquist shell 'ash' in the mid 1980's but as it was running > on an unimpressive/unsuitable operating system (DRDOS/TOS) That must have been a different shell, becaus

Re: [PATCH] [EVAL] with set -e exit the shell if a subshell exits non-zero

2010-07-06 Thread Herbert Xu
On Mon, Jun 14, 2010 at 09:56:03AM +, Gerrit Pape wrote: > Example: > > $ dash -c 'set -e; (false); echo here' > here > > With this commit, dash exits 1 before echo. > > The bug was reported by Stefan Fritsch through > http://bugs.debian.org/514863 > > Signed-off-by: Gerrit Pape Applied

Re: [PATCH] Fix regression when unsetting variables.

2010-07-06 Thread Herbert Xu
On Wed, Jun 16, 2010 at 02:29:58AM +, Brian Koropoff wrote: > When removing a variable from its hash chain, assign to the 'next' pointer > of the previous link rather than the hash bucket. OK I ended up fixing it slightly differently. commit cb20b2cd727c892756ff3f144ebf92feb5590562 Author: He

Re: if then elif then else fi -- Problem report

2010-07-06 Thread Malcolm Kay
On Mon, 5 Jul 2010 07:20 am, Sven Mascheck wrote: > On Tue, Jun 29, 2010 at 10:38:31AM +0930, Malcolm Kay wrote: > > I had assumed that 'dash' aimed to be a faster replacement > > for the classical Bourne shell 'sh' as implemented in BSD > > systems, and this seemed to be confirmed when all the man