[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shell portability question
From: |
Paul Eggert |
Subject: |
Re: shell portability question |
Date: |
Sat, 18 Sep 2004 21:11:15 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
"Gary V.Vaughan" <address@hidden> writes:
> # Check that break and continue aren't misused in our portable shell scripts.
> $EGREP -n '[^ ]=[^ ].*(break|continue)' $scripts \
I dunno, but perhaps it's checking for invalid usages like this?
foo=bar break
That would indeed be invalid, but usages like
test -r foo && bar=baz && break
are OK as far as I know.