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

Re: bashism question



On Tue, 2008-06-24 at 09:34 -0500, Raphael Geissert wrote:
> Russ Allbery wrote:
> 
> > "Adam D. Barratt" <adam@adam-barratt.org.uk> writes:
> > 
> >> Supporting "local x" would be relatively simple; suggestions for a
> >> reliable regex to catch use of -a/-o welcome... :)
> > 
> > There was a fairly good one in Lintian that I took out once Policy blessed
> > it, or at least we didn't get a lot of false positive reports.
> > 
> 
> Maintainer scripts are fairly simple so I don't think there will be many
> false positives ;)

The expression looks fairly robust and passes my testing so far;
admittedly the archive is full of scripts that break almost every
assumption I ever made about shell scripting.

This is getting a little off-topic for -devel I think :)

Adam


Reply to: