[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: |
Sun, 19 Sep 2004 10:00:52 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
"Gary V.Vaughan" <address@hidden> writes:
> I'll change the test to:
>
> $EGREP -n '[^ ]=[^ ]*[ ]*(break|continue)' $scripts
>
> Which will also stop it choking on valid things like this:
>
> foo=bar; break
Unfortunately that pattern matches "foo=bar; break", no?
You'll need something a good deal more sophisticated, I'm afraid.
Perhaps it'd be simpler just to remove the check.