On Thursday 2010-02-25 21:41, Hans-Peter Jansen wrote:
and all is well, up to 13-check-invalid-provides: the test boils down to:
$ echo hylafax | grep -E "^hylafax+[[:space:]]*$" hylafax $
while this is desired here:
$ echo hylafax | grep -G "^hylafax+[[:space:]]*$" $
Using basic regex provide exactly the means of the unversioned package name check, while not tripping over the '+'. According to the man page, only ?, +, {, |, (, and ) lose their special meaning, thus:
$ echo hylafax+ | grep -G "^hylafax+[[:space:]]*$" hylafax+ $
the + is matched literally, which is desired.
echo "$input" | pcregrep '^\Q'"$pkgnamehere"'\E\s*$' Would fix it once and for all without having to resort to awkward preescaping of pluses and so. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org