|
From: | Bernd Eggink |
Subject: | Re: Bug: 'case' in command substitution not handled correctly |
Date: | Thu, 16 Apr 2009 11:02:35 +0200 |
User-agent: | Thunderbird 2.0.0.21 (X11/20090302) |
Chet Ramey schrieb:
Bernd Eggink wrote:GNU bash, Version 4.0.17(1)-release (i686-pc-linux-gnu) The shell doesn't recognize the closing parenthesis of a command substitution if a 'case' command is included and 'esac' is preceded by newline. Example: x=$(case $a in(1) echo one esac )Try the attached patch. A newline really is a shell meta-character.
That fixes it, thanks. Bernd -- Bernd Eggink http://sudrala.de
[Prev in Thread] | Current Thread | [Next in Thread] |