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: Oğuz
Subject: Re: syntax error while parsing a case command within `$(...)'
Date: Tue, 16 Feb 2021 08:55:41 +0300

On Tue, Feb 16, 2021 at 8:34 AM Koichi Murase <myoga.murase@gmail.com>
wrote:

> Because the ending keywords---}, fi, done, and esac---are allowed to
> be chained, which I think is undocumented though.
>
> $ { { { { { echo "Something like this is allowed"; } } } } }
>

Huh. So a compound list consisting of a single compound command and no
separator is still a valid compound list.

    $ if (:) then (:) fi
    $

I had no idea.


>
> --
> Koichi
>


reply via email to

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