[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: syntax error while parsing a case command within `$(...)'
From: |
Koichi Murase |
Subject: |
Re: syntax error while parsing a case command within `$(...)' |
Date: |
Sun, 14 Feb 2021 17:31:24 +0800 |
2021年2月14日(日) 17:16 Oğuz <oguzismailuysal@gmail.com>:
>> This is interesting. I think this is just an oversight. A quick fix
>> like the attached patch should be fine. [ Note: The patch seems to
>> work fine, but I haven't carefully read the code, so I'm not sure if
>> this fix is really correct. ]
>
> It seems to be on the right track but incomplete:
>
> $ ./bash -c '$(case x in x) ;; x) esac)'
> ./bash: -c: line 1: unexpected EOF while looking for matching `)'
> ./bash: -c: line 2: syntax error: unexpected end of file
>
Yeah, let's wait for Chet's fix. I haven't read the entire code of
this long function `parse_comsub ()' so cannot properly fix it soon. I
think the problem has been pinpointed by the patch, so I expect it can
be right fixed by Chet.
--
Koichi
- syntax error while parsing a case command within `$(...)', Oğuz, 2021/02/13
- Re: syntax error while parsing a case command within `$(...)', Robert Elz, 2021/02/13
- Re: syntax error while parsing a case command within `$(...)', Robert Elz, 2021/02/14
- Re: syntax error while parsing a case command within `$(...)', Stephane Chazelas, 2021/02/14
- Re: syntax error while parsing a case command within `$(...)', Robert Elz, 2021/02/14
- Re: syntax error while parsing a case command within `$(...)', Oğuz, 2021/02/14
- Re: syntax error while parsing a case command within `$(...)', Chet Ramey, 2021/02/15
Re: syntax error while parsing a case command within `$(...)', Oğuz, 2021/02/13
Re: syntax error while parsing a case command within `$(...)', Lawrence Velázquez, 2021/02/13
Re: syntax error while parsing a case command within `$(...)', Chet Ramey, 2021/02/15