bug-bash
[Top][All Lists]
Advanced

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

Re: bash is crashing with command "$(;"


From: Chet Ramey
Subject: Re: bash is crashing with command "$(;"
Date: Mon, 20 Oct 2025 15:51:11 -0400
User-agent: Mozilla Thunderbird

On 10/18/25 4:44 PM, Mike Jonkmans wrote:

On latest devel, using ubuntu 24.04, bash --noprofile --norc, I get:
bash-5.3$ $(;
bash: syntax error near unexpected token `;' while looking for matching `)'
bash: DEBUG warning: current_token (10) != shell_eof_token ()
bash: syntax error

No crashes, but the message is mb pointing to something.

Not really, it's just telling me what tokens can occur when you get a syntax
error while parsing a command substitution in different error situations.
It's usually 10 (newline) because the parser resets. More information than
anything else.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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