[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash “case” statement
From: |
Lawrence Velázquez |
Subject: |
Re: Bash “case” statement |
Date: |
Wed, 12 Jul 2023 20:22:17 -0400 |
User-agent: |
Cyrus-JMAP/3.9.0-alpha0-531-gfdfa13a06d-fm-20230703.001-gfdfa13a0 |
On Wed, Jul 12, 2023, at 7:52 PM, Tony Esposito wrote:
> Is the bash “case”
> statement just syntactic sugar?
> That is, does the bash interpreter convert the “case” statement into an
> equivalent “if-then-else” statement and then do the interpretation?
No.
https://git.savannah.gnu.org/cgit/bash.git/tree/execute_cmd.c?h=devel#n3532
--
vq