|
| From: | Chet Ramey |
| Subject: | Re: syntax error while parsing a case command within `$(...)' |
| Date: | Mon, 15 Feb 2021 16:12:19 -0500 |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 |
On 2/13/21 3:21 PM, Oğuz wrote:
$ bash -c ': $(case x in x) esac)' bash: -c: line 1: unexpected EOF while looking for matching `)' bash: -c: line 2: syntax error: unexpected end of file `case x in x) esac' is a complete case command, a syntax error is unexpected here.
It is unexpected, though the syntax is obscure. I'll fix it.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
| [Prev in Thread] | Current Thread | [Next in Thread] |