Hi Ben
> The following small change should do what is required:
>
>         echo "$(shell (/usr/bin/pkginfo $(PKG) || echo "P $(PKG) - ") | awk 
> '{$$1 = "P"; print }')"
>
> Notice the bracketing around the pkginfo/echo pair.  You want the
> output of whichever is sucessful to get piped to awk, not just the
> output of the echo if pkginfo fails.
>   
Oops i missed that one. Sorry ... :(

Thanks for finding the solution

-- 
William                  http://www.wbonnet.net

http://www.sunwizard.net Le site français des amateurs de stations Unix
http://www.opencsw.org   Community SoftWare for Solaris
http://www.guses.org     French speaking Solaris User Group



_______________________________________________
maintainers mailing list
[email protected]
https://lists.opencsw.org/mailman/listinfo/maintainers

Reply via email to