[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using ‘;&’ in place of ‘;;’ in case statement
From: |
Alex fxmbsw7 Ratchev |
Subject: |
Re: Using ‘;&’ in place of ‘;;’ in case statement |
Date: |
Mon, 13 Dec 2021 07:34:45 +0100 |
args=abc ; case $args in *a*) printf a\\n ;& *b*) printf b\\n ;& esac
a
b
On Mon, Dec 13, 2021, 05:27 fatiparty--- via <help-bash@gnu.org> wrote:
>
> I am reading the Gnu Bash Manual "3.2.5.2 Conditional Constructs".
>
> In the "case" part, the manual states that
>
> Using ‘;&’ in place of ‘;;’ causes execution to continue withthe
> command-list associated with the next clause, if any.
>
> How can one clause cause a match, then continue to another clause that
> causes an additional match?
>