bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syntax error while parsing a case command within `$(...)'


From: Lawrence Velázquez
Subject: Re: syntax error while parsing a case command within `$(...)'
Date: Sat, 13 Feb 2021 23:53:33 -0500

> On Feb 13, 2021, at 5:21 PM, Robert Elz <kre@munnari.OZ.AU> wrote:
> 
> This problem has been known for a LONG time, without it being fixed.

I played around with shbot on Freenode for a bit. "LONG time" is right:

<larryv> bash50 -c ': $(case x in x) esac)'
<shbot>  bash50: -c: line 0: unexpected EOF while looking for matching `)'
<shbot>  bash50: -c: line 1: syntax error: unexpected end of file

<larryv> bash44 -c ': $(case x in x) esac)'
<shbot>  bash44: -c: line 0: unexpected EOF while looking for matching `)'
<shbot>  bash44: -c: line 1: syntax error: unexpected end of file

<larryv> bash32 -c ': $(case x in x) esac)'
<shbot>  bash32: -c: line 0: syntax error near unexpected token `)'
<shbot>  bash32: -c: line 0: `: $(case x in x) esac)'

<larryv> bash2 -c ': $(case x in x) esac)'
<shbot>  bash2: -c: line 1: syntax error near unexpected token `)'
<shbot>  bash2: -c: line 1: `: $(case x in x) esac)'

<larryv> bash1 -c ': $(case x in x) esac)'
<shbot>  Segmentation fault

--
vq



reply via email to

[Prev in Thread] Current Thread [Next in Thread]