Bug#464026: [checks/scripts] Sync bashism tests with checkbashisms
"Adam D. Barratt" <adam@adam-barratt.org.uk> writes:
> The first two certainly should be prefixed by something to avoid them
> matching strings that happen to end in "echo -e". I've updated
> checkbashisms to do so for all three.
>
> As far as I can see that won't stop "echo echo -e" matching, however.
I was proposing using:
'(?:^|\s+)echo\s+-e', # echo -e
'(?:^|\s+)exec\s+-[acl]', # exec -c/-l/-a name
'(?:^|\s+)let\s', # let ...
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: