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

Re: package dependency



[ my `debquery' script ]

Right, this is the first update... %)

[...]
> 
> ex $STATUSFILE << _EOF_ | cut -d: -f2
> g/^$FIELD:.*\<$PACKAGE\>/ ?Package? p

The previous line works better if it replaced by these two:

g/^$FIELD:.*\<$PACKAGE\>[^-]/ ?Package? p
g/^$FIELD:.*\<$PACKAGE\$/ ?Package? p

This prevents `gs' from matching `gs-aladdin'.

Hope that's it in the bug department, since I'm leaving for a few days.

Eric (feeling that regular expressions are always more hairy than they
look).


-- 
 E.L. Meijer (tgakem@chem.tue.nl)
 Eindhoven Univ. of Technology
 Lab. for Catalysis and Inorg. Chem. (SKA)


Reply to: