I wrote a simple script to switch my locale.
If I write each line in the console and execute it, it works without any problem or if I put it in
However when I execute the script either with sudo or without it has absolutely no noticeable effect. ( locale remains the same )
The question is why is that?
Is my script wrong or am I missing something different.
#!/bin/bash set -x LANG=en_US.utf8 LANGUAGE=en_US.utf8 LC_ALL=en_US.utf8 export LANG export LANGUAGE export LC_ALL echo "Language set!"
I'm receiving the execution steps and the
Language set echo but that's about it.
I also tried
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS" Kernel: 3.13.0-042stab103.6