Re: syntax error while parsing a case command within `$(...)'
From:
Robert Elz
Subject:
Re: syntax error while parsing a case command within `$(...)'
Date:
Thu, 18 Feb 2021 06:40:03 +0700
Date: Thu, 18 Feb 2021 01:34:59 +0800
From: Koichi Murase <myoga.murase@gmail.com>
Message-ID:
<CAFLRLk_9L399VCSB9bHV26R=M16cW6_NRtQP8O7BOYWQ7fh+EQ@mail.gmail.com>
| ever written a shell parser?
From scratch, no, but I maintain one.
With all the details....
It isn't all that hard, but isn't trivial
either, and amounts to quite a bit of code
(and parsing all the bash extensions the
way it does would make it harder and bigger)
Like everything, it becomes a cost/benefit
tradeoff, are the costs worth the benefits?
That one is not for me (or you) to answer.
kre
ps: I am sure Chet will confirm that I am not
shy about pointing out bash bugs/defects that
shoukd be fixed when I come accross one.