H
H
hckn2018-08-08 23:37:33
bash
hckn, 2018-08-08 23:37:33

Why aren't global variables set from script?

#!/bin/bash

export LANG=en_US.UTF-8
export LANGUAGE=en_US
export LC_CTYPE=en_US.UTF-8
export LC_NUMERIC=en_US.UTF-8
export LC_TIME=en_US.UTF-8
export LC_COLLATE="en_US.UTF-8"
export LC_MONETARY=en_US.UTF-8
export LC_MESSAGES="en_US.UTF-8"
export LC_PAPER=en_US.UTF-8
export LC_NAME=en_US.UTF-8
export LC_ADDRESS=en_US.UTF-8
export LC_TELEPHONE=en_US.UTF-8
export LC_MEASUREMENT=en_US.UTF-8
export LC_IDENTIFICATION=en_US.UTF-8
export LC_ALL=en_US.UTF-8

Why does not it work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2018-08-09
@CityCat4

Because it's not necessary.
Here is an example of a working .bash_profile (part essno)

# L10N
NLSPATH=/nonexistent; export NLSPATH
LANG=ru_RU.UTF-8; export LANG
LC_MESSAGES=ru_RU.UTF-8; export LC_MESSAGES
LC_TIME=en_GB.UTF-8; export LC_TIME
LC_NUMERIC=ru_RU.UTF-8; export LC_NUMERIC

# Other
EDITOR=mcedit; export EDITOR
PAGER=less; export PAGER
BLOCKSIZE=K; export BLOCKSIZE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question