Re: i18n requires setlocale
On Wed, Sep 11, 2002 at 12:55:53AM +0200, Tollef Fog Heen wrote:
> * Martin Sjögren
>
> | * main-menu asks debconf for debian-installer/language which afaict
> | doesn't exist. IMO it would be better if the thing that asked for
> | debian-installer/language first, sets LANG=$language after that, so
> | setlocale can be used.
>
> Can't be done, since it will be set in a subprocess.. it's kinda
> hackish, but AFAICT there is no other way. You can't pass environment
> vars to parents.
You can, but the parent has to listen. Though I don't know if it's
possible in this very case.
--------< set-var >--------
#!/bin/sh
VAR=`frobnicate --all`
echo VAR="$VAR"
---------------------------
then do:
OUT=`set-var`
eval "$OUT"
echo $VAR
Marcin
--
Marcin Owsiany <porridge@debian.org> http://marcin.owsiany.pl/
GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216
Reply to: