|
| From: | Oğuz |
| Subject: | Re: syntax error while parsing a case command within `$(...)' |
| Date: | Tue, 16 Feb 2021 08:29:20 +0300 |
16 Şubat 2021 Salı tarihinde Koichi Murase <myoga.murase@gmail.com> yazdı:
>
> bash -c ': $(case x in esac)'
> bash -c ': $(case x in (x) if :; then echo a; fi esac)'
> bash -c ': $(case x in (x) a() { echo a; } esac)'
> bash -c ': $(case x in (x) for ((i=0;i<10;i++)) { echo a; } esac)'
> bash -c ': $(case x in (x) while false; do echo a; done esac)'
> bash -c ': $(case x in (x) case y in (y) echo a;; esac esac)'
>
I'm lost. Are these even supposed to work outside command substitution? Why?
--
Oğuz
| [Prev in Thread] | Current Thread | [Next in Thread] |