On Sat, Feb 27, 2016 at 05:51:32PM +0100, Patrik Lundin wrote:
> Hello,
> 
> The '-e' option to pkg_info is currently described in the following way:
> ===
> If the package identified by pkg-name is not currently installed, return
> 0, otherwise return 1.
> ===
> 
> However, it behaves the other way around:
> ===
> $ pkg_info -e 'vim-*-no_x11' 
> inst:vim-7.4.900-no_x11
> $ echo $?
> 0
> 
> $ pkg_info -e 'vim-*-no_x12'
> $ echo $?                    
> 1
> ===
> 
> Diff to man page below (removing a negation always feels good).
> 

fixed, thanks.
jmc

> -- 
> Patrik Lundin
> 
> Index: pkg_info.1
> ===================================================================
> RCS file: /cvs/src/usr.sbin/pkg_add/pkg_info.1,v
> retrieving revision 1.51
> diff -u -p -u -r1.51 pkg_info.1
> --- pkg_info.1        7 Oct 2015 17:52:38 -0000       1.51
> +++ pkg_info.1        27 Feb 2016 16:41:45 -0000
> @@ -87,7 +87,7 @@ allows you to test for the presence of a
>  prerequisite) package from a script.
>  If the package identified by
>  .Ar pkg-name
> -is not currently installed, return 0, otherwise return 1.
> +is currently installed, return 0, otherwise return 1.
>  In addition, the names of any package(s) found installed are printed to
>  stdout unless turned off using the
>  .Fl q
> 

Reply via email to