[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
>
- Re: syntax error while parsing a case command within `$(...)', (continued)
Re: syntax error while parsing a case command within `$(...)', Chet Ramey, 2021/02/15
- Re: syntax error while parsing a case command within `$(...)', Koichi Murase, 2021/02/15
- Re: syntax error while parsing a case command within `$(...)', Andreas Schwab, 2021/02/16
- Re: syntax error while parsing a case command within `$(...)', Koichi Murase, 2021/02/16
- Re: syntax error while parsing a case command within `$(...)', Oğuz, 2021/02/16
- Re: syntax error while parsing a case command within `$(...)', Koichi Murase, 2021/02/16
- Re: syntax error while parsing a case command within `$(...)', Oğuz, 2021/02/16
- Re: syntax error while parsing a case command within `$(...)', Koichi Murase, 2021/02/16
- Re: syntax error while parsing a case command within `$(...)', Koichi Murase, 2021/02/16
- Re: syntax error while parsing a case command within `$(...)', Oğuz, 2021/02/16
- Re: syntax error while parsing a case command within `$(...)', Koichi Murase, 2021/02/17