a much improved smbprint script.

Richard Sharpe sharpe at ns.aus.com
Sun Dec 9 10:37:02 GMT 2001


Richard Sharpe wrote:

> Alfred Perlstein wrote:
>
> OK, another problem I have is that ${param:+word} does not look portable.

Jeremy thinks that this is not very portable ... I want to change all 
use of ${param:+-l} ${param} into the following:

if [ "x$param" != "x" ]; then

  param="-l $param"

fi

...

... ${param}

There is still the issue that getopts will not be portable as well :-(

-- 
Richard Sharpe, rsharpe at ns.aus.com, LPIC-1
www.samba.org, www.ethereal.com, SAMS Teach Yourself Samba 
in 24 Hours, Special Edition, Using Samba







More information about the samba-technical mailing list