Hi,

If I want English output of an application I set the environment variable LC_ALL to "C" inline of the command e.g.:

~# LC_ALL=C apt install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

If I don't set the variable the apt command return output localized:

~# apt install
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze... Fatto
Lettura informazioni sullo stato... Fatto
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.

This is useful when it's needed to submit a bug report or to speak with other people in one international mailing list like this :) (apropos sorry for my English).

So the question is: does anybody know if this syntax works on all shells other than bash? csh, korn, dash, zsh …

Thanks in advance, kind regards
--
Franco Martelli

Reply via email to