You are not logged in.
@loqs, WARNING this is a bashim. Even on zsh it'll just take a while (a dozen seconds? no idea what happened ;-) and not unset the variable
For another bashism (doesn't work on zsh either):
for LCV in `printenv | sed '/^LC_/!d; s/=.*//g'`; do [ -z ${!LCV} ] && unset $LCV; done
Edit, zshism:
for LCV in `printenv | sed '/^LC_/!d; s/=.*//g'`; do [ -z ${(P)LCV} ] && unset $LCV; done
Editedit, bazshism (if we buy into non-posix anyway ...)
for LCV in `printenv | grep -E '^LC_'`; do [ -z ${LCV#*=} ] && unset ${LCV%=*}; done
@ugjka
"For now" - if it ever hits reddit, it'll soon be NOTABUG :-P
Last edited by seth (2017-08-04 13:27:44)
Online
Ok, I missed that it was in post #9.
In my locale.conf I set/override all variables with the exact configuration I want, because I want LANG to be en_US.UTF-8 but I want some of the LC_ variables to be set to another locale. Maybe that is why I have not stumbled upon any possible bugs with systemd.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline