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

Re: Using gettext in scripts



Gustavo Noronha Silva wrote:
> Martin Quinson <Martin.Quinson@ens-lyon.fr> wrote:
> > That's the sh (inefficient) way. In bash, you can use the
> > following shorthand: $"My message"
> great that is just what I wanted! thank you very much, thanks too,
> Javier!

Just what I don't want: People adding more and more dependencies on bash.

The portable way is to use $echo, where echo="/usr/bin/gettext" if it exists
or "echo" otherwise.

Remember everybody that bash is essential mainly because it "officially"
provides /bin/sh, not because we can't do anything without /bin/bash.



Reply to: