a much improved smbprint script.

Richard Sharpe sharpe at ns.aus.com
Mon Dec 10 16:38:01 GMT 2001

Helge Blischke wrote:

>Rafal Szczesniak wrote:
>>On Mon, 10 Dec 2001, Richard Sharpe wrote:
>>>Alfred Perlstein wrote:
>>>OK, another problem I have is that ${param:+word} does not look portable.
>>because it's not portable. I tried something similiar once (with i18n
>>manpages) and it failed with c-shells. If you really need it to be
>>one-line command, use sed. I know, relying on sed is not the best
>>example of portability, but it's used anyway in samba scripts.
>>From my experience, that construct is common to all Bourne shells and
>supported as well by ksh and bash on all UNIXes I've seen so far (about
>dozen variants). And, by beginning the first line of a script with
>"#!/bin/sh" (without the quotes, of course), the use of sh is forced.
Does that include ULTRIX and SCO, and DG/UG?

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