On Thursday 2010-02-25 23:45, Hans-Peter Jansen wrote:
echo "$input" | pcregrep '^\Q'"$pkgnamehere"'\E\s*$'
Some issues with your suggestion from my side: - another package dependency in the mandatory build environment
Oh you can use perl instead. That's already installed anyway. | perl -e 'print if m{^\Q'"$pkgnamehere"'\E\s*$}' Or even grep, which is even more likely to be installed. | grep -P '^\Q'"$pkgnamehere"'\E\s*$' though -P is SUSE-specific and I've learnt to use pcregrep instead because that works cross-distro.
- I haven't heard from pcregrep until you mentioned it (okay, my fault) - I failed to parse that expression on the first sight (okay, my fault again, \Q and \E will stop/start the special meaning of special characters, I guess...)
Judge, we will have to subtract the last two, which keeps the first only...
Seriously, sanity check of packaging is a major point, and that should be done as comprehensible as possible.
Thanks,
While I'm a big fan of your work (and already snatched some cool tricks from some of your specs ;-))
Since it's all standard to me, which specific tricks are you referring to? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org