a much improved smbprint script.

Helge Blischke H.Blischke at srz-berlin.de
Tue Dec 11 06:00:03 GMT 2001


Richard Sharpe wrote:
> 
> 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
> >a
> >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?
> 
SCO, surely yes. Dunno for ULTRIX and DG/UG. There should be a man page
describing the variable substutution mechanism for the "default" shell.

Helge

-- 
H.Blischke at srz-berlin.de
H.Blischke at srz-berlin.com
H.Blischke at acm.org




More information about the samba-technical mailing list