Bug#802800: Passes -S unconditionally conflicting with '-g' when building the source package

Tomasz Buchert tomasz at debian.org
Tue Nov 10 10:15:51 UTC 2015


On 10/11/15 10:02, Mattia Rizzolo wrote:
> [...]
> I'm not that good at writing regex, but I tried to cook something that
> works either with the quotes or without, but I failed.
>     perl -pe 's/(^|\s)(?:'\'')-[AbBFgG](?:'\'')(\s|$)/$1$2/g'
> do you have a clue about what's wrong here?
> 
> worst case I can always pipe the two perl calls, one considering the
> quotes and the other no.

What about this?

     perl -pe 's/(^|\s)['\'']?-[AbBFgG]['\'']?(\s|$)/$1$2/g'

Tomasz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20151110/d2c9772f/attachment-0001.sig>


More information about the Pbuilder-maint mailing list