[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Translation of init scripts



On Tue, Jul 13, 1999 at 12:08:31AM +0100, Julian Gilbey wrote:
> 
> printf "`$echo 'Starting %s: %s'`" foo bar
> 
> Don't you just love shell quoting?!

I do, but this would be twice as slow :-)

> 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.

if test -x /etc/init.d/setlang.sh
  then echo="gettext -s"
  else echo=echo
fi

this is pretty much what I did. It only assumes that
/etc/init.d/setlang.sh is distributed _with_ gettext.

[]s,
                                               |alo
                                               +----
--
      I am Lalo of deB-org. You will be freed.
                 Resistance is futile.

http://www.webcom.com/lalo      mailto:lalo@webcom.com
                 pgp key in the web page

Debian GNU/Linux       --        http://www.debian.org


Reply to: