[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: syntax error with lone > or < as string in [ ] tests with -a or -o o
From: |
Andreas Schwab |
Subject: |
Re: syntax error with lone > or < as string in [ ] tests with -a or -o operators |
Date: |
Mon, 15 Apr 2024 22:57:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Apr 15 2024, Greg Wooledge wrote:
> And that's a bug. That code is wrong, and it should be written this way
> instead:
>
> [ -z "$var1" ] && [ -z "$var2" ] && continue
Or just [ -z "$var1$var2" ] && continue
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."