help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: case statement with non-consecutive numbers


From: Greg Wooledge
Subject: Re: case statement with non-consecutive numbers
Date: Thu, 15 Apr 2021 16:30:05 -0400

On Thu, Apr 15, 2021 at 04:25:37PM -0400, Greg Wooledge wrote:
> for i in {1..100}; do
>   case $i in 11|37) break;; esac
>   ...
> done

That should have been continue, rather than break.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]