[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: yet another $(case ... parse bug
From: |
Chet Ramey |
Subject: |
Re: yet another $(case ... parse bug |
Date: |
Tue, 28 May 2024 15:09:19 -0400 |
User-agent: |
Mozilla Thunderbird |
On 5/23/24 1:19 PM, Oğuz wrote:
See:
$ bash -c 'for (( $(case x in x) esac);; )); do :; done'
bash: -c: line 1: syntax error: `;' unexpected
bash: -c: line 1: syntax error: `(( $(case x in x)
;;
esac);; ))'
Thanks for the report. This should be a pretty easy fix; just use
extract_command_subst() in the right place.
Chet
--
``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/