bug-bash
[Top][All Lists]
Advanced

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

shell_eof_token not reset after interrupt


From: Grisha Levit
Subject: shell_eof_token not reset after interrupt
Date: Sun, 28 Sep 2025 12:11:59 -0400

If SIGINT is received while parsing a command substitution, the top-
level parser ends up with an incorrect shell_eof_token.

This results in incorrect messages for subsequent syntax errors:

    $ $(
    > ^C
    $ ;
    bash: syntax error near unexpected token `;' while looking for matching `)'

And a non-working verbose mode:

    $ set -v
    $ : xxxx
    $



reply via email to

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