Re: $(case x in x)...

2005-12-28 Thread Eric Blake
> I have confirmed that > it still exists in bash-3.1-beta1, but have not yet tested > if bash 3.1 final patchlevel 1 has fixed the bug. My results: bash 3.1, with or without patch 1, still has the bug. $ k=$(case x in x) echo hi; esac) bash: syntax error near unexpected token `esac' > The rati

Re: $(case x in x)...

2005-12-28 Thread Eric Blake
> However, who is it that is too hungry for the next ")"?: > $ k=$(case x in x) :;; esac) > bash: syntax error near unexpected token `;;' > $ k=$(case x in x) :; esac) > bash: syntax error near unexpected token `esac' > $ k=`case x in x) :; esac` I believe this is a bug in bash 3.0. I have confir

$(case x in x)...

2005-12-28 Thread Dan Jacobson
The man page berates old-timers: When the old-style backquote form of substitution is used... However, who is it that is too hungry for the next ")"?: $ k=$(case x in x) :;; esac) bash: syntax error near unexpected token `;;' $ k=$(case x in x) :; esac) bash: syntax error near unexpected tok