Subject: Re: pkgsrc NetBSD 3.0_BETA/x86_64 bulk build results 2005-12-09
To: Lubomir Sedlacik <>
From: Roland Illig <>
List: pkgsrc-bulk
Date: 12/11/2005 23:24:48
Lubomir Sedlacik wrote:
> On Sun, Dec 11, 2005 at 10:58:15PM +0100, Roland Illig wrote:
>>This one is very weird. ${PKGNAME:S|nb*||} does not do what I would
>>expect it do do, which is stripping the nb* part at the end. Can
>>anyone explain that, or do I need to let pkglint warn about every use
>>of the :S modifier?
> not weird at all, :S modifer is for replacing strings, not patterns.
> you want to use :C, ${PKGNAME:C|nb.*||}.

There is a little pattern matching involved (^ and $). Maybe that's what 
has confused me. I had also thought that :S is for shell-like 
expressions while :C is for regular expressions. I don't know where I 
"learned" that. Thanks for the clear explanation.