Re: Translation of init scripts
> On Mon, Jul 12, 1999 at 06:29:42PM -0300, Eduardo Marcel Macan wrote:
> > On Mon, Jul 12, 1999 at 06:11:11PM -0300, Lalo Martins wrote:
> > > A printf-like echo replacement would work for both, but would be
> > > a pain to implement and yet another thing for maintainers to
> > > learn/worry about.
> >
> > We need not, printf(1) is part of shellutils already.
>
> Macan, I love you :-)
>
> `printf "Starting %s: %s" description daemon' does exactly what
> we need. Of course, a gettext-ized version has to be hacked up.
printf "`$echo 'Starting %s: %s'`" foo bar
Don't you just love shell quoting?!
BTW, you probably want to use something like:
if test -x /usr/bin/gettext; then echo='gettext -s'; else echo=echo; fi
or similar instead of assuming that gettext exists.
Julian
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
Debian GNU/Linux Developer, see http://www.debian.org/~jdg
Reply to: