[Pdns-dev] Patch: fix use of 'cut' in suffix detection in pdns/pdns.in

Peter van Dijk peter.van.dijk at netherlabs.nl
Mon Jan 2 21:15:31 CET 2012

> The patch that broke this, was meant to add support for dashes inside the config name. Reverting to the old awk version would break that again.
> I propose making it:
> suffix=$(basename $0 | cut -d- -f2- -s)
> as I believe that this covers all options: no suffix, a simple suffix, or a suffix with dashes.
> Marc Haber, can you confirm that this would work for you too?

Committed as r2327 meanwhile :)

Kind regards,
Peter van Dijk

More information about the Pdns-dev mailing list