[Slapt-get-devel] Return values on failed regex search

George Vlahavas vlahavas at gmail.com
Mon Sep 2 13:44:53 EDT 2013


Hi Jason,

I think slapt-get and slapt-src should probably return something other
than 0 in the following cases. I'm not sure if slapt-get should
produce the regex error twice too:

root[/]# slapt-get --search *badregex
Failed to compile regex
Regex Error: Invalid preceding regular expression
Failed to compile regex
Regex Error: Invalid preceding regular expression
root[/]# echo $?
0
root[/]# slapt-src --search *badregex
Failed to compile regex
Regex Error: Invalid preceding regular expression
root[/]# echo $?
0

Best regards,

George


More information about the Slapt-get-devel mailing list