Re: Use of gettext in scripts
I wrote:
> So the following looks like a possibility, but it's a bit yucky:
>
> sh: text=`gettext -s 'I am a $name, what are you?'`
> eval echo $text
> perl: $text=gettext 'I am a $name, what are you?';
> eval "print $text, '\n'";
Of course, the following would actually work:
sh: text=`gettext -s 'I am a $name, what are you?'`
eval echo "$text"
perl: $text=gettext 'I am a $name, what are you?';
eval "print qq($text), '\n'";
Note the extra quotes!
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 for info
Reply to: