[csw-maintainers] Strange behaviour when depend file gets created

William Bonnet william at wbonnet.net
Mon Mar 9 14:33:37 CET 2009


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






More information about the maintainers mailing list