Re: Parse error with consecutive case statements inside $()

2016-04-01 Thread Piotr Grzybowski
Hello! I firmly believe that the attached patch fixes the problem at hand; what it breaks I have no idea. Kindly requesting a review. cheers, pg P.S. it also fixes others of the similar type, e.g.: x=$(case 1 in 1) echo 1;; esac; case 2 in 2) echo 2;; esac;) echo $x P.P.S. vim :syntax notic

Re: Parse error with consecutive case statements inside $()

2016-04-01 Thread Chet Ramey
On 4/1/16 4:21 AM, Piotr Grzybowski wrote: > Hello! > > I firmly believe that the attached patch fixes the problem at hand; what > it breaks I have no idea. Kindly requesting a review. It breaks the test suite. It tries to do a little bit too much: it should not add the character to the return