a much improved smbprint script.

Jeremy Allison jra at samba.org
Sun Dec 9 10:40:02 GMT 2001


On Mon, Dec 10, 2001 at 05:45:42AM +1030, Richard Sharpe wrote:
> 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

Yes, that's much better.


> ... ${param}
> 
> There is still the issue that getopts will not be portable as well :-(

Yes. Don't use getopts in a portpable script. Parse the args
manually with shift etc.

Jeremy.




More information about the samba-technical mailing list