bug-bash
[Top][All Lists]
Advanced

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

inconsistent handling of closing brace inside no-fork command substituti


From: Oğuz
Subject: inconsistent handling of closing brace inside no-fork command substitution
Date: Wed, 3 Jan 2024 16:41:42 +0300

See:

    $ ${ case } in }) echo uname; esac }
    Linux
    $ ${ case }x in }x) echo uname; esac }
    bash: command substitution: line 25: syntax error near unexpected token `x'
    bash: command substitution: line 25: `    }x)'
    $ ${ case }x in \}x) echo uname; esac }
    Linux
    $

I don't think this should be a syntax error because the closing brace
is not in a place it can terminate the command substitution.

Oğuz



reply via email to

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