help-bash
[Top][All Lists]
Advanced

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

Re: Fancy conditional expression: Have I got this right?


From: Jeffrey Walton
Subject: Re: Fancy conditional expression: Have I got this right?
Date: Wed, 16 Jul 2025 16:57:35 -0400

On Wed, Jul 16, 2025 at 3:29 PM Stan Marsh <gazelle@xmission.com> wrote:
>
> I have the following line in a script.  I think it is right.  Can you confirm?
>
>     ! echo hello | grep ll || [[ zoology =~ oolz ]] && echo "Fail!"

Run Shellcheck on your script. Shellcheck is available on most common
distributions. It does a good job of pointing out problems.

Jeff



reply via email to

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