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

Jason Woodward woodwardj at jaos.org
Mon Sep 2 16:20:24 EDT 2013


Hi George,

> 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

Thanks, George. 
http://software.jaos.org/git/slapt-get/commit/?id=5cb4555dc0b87217d782cd6f5
5aab128992189d4


take care,
jason
--
Jason Woodward


More information about the Slapt-get-devel mailing list