Michal Hlavinka
2013-05-29 13:01:15 UTC
Hi,
I found that date builtin in ksh does not respect LC_TIME variable.
unset LC_ALL
export LANG=en_US.utf-8
export LC_TIME=cs_CZ.utf-8
ksh -c 'type date; date; /bin/date; export LC_TIME=en_US.utf-8; date;
/bin/date'
prints:
date is a shell builtin version of /usr/bin/date
St kv? 29 14:17:21 CEST 2013
St kv? 29 14:17:21 CEST 2013
St kv? 29 14:17:21 CEST 2013
Wed May 29 14:17:21 CEST 2013
also it seems impossible to disable this builtin:
$ type date
date is a shell builtin version of /usr/bin/date
$ builtin | grep date
/opt/ast/bin/date
$ builtin -d date
$ builtin -d /opt/ast/bin/date
$ type date
date is a shell builtin version of /usr/bin/date
which works for ordinary builtin:
$ type true
true is a shell builtin
$ builtin | grep true
true
$ builtin -d true
$ type true
true is a tracked alias for /usr/bin/true
Michal
I found that date builtin in ksh does not respect LC_TIME variable.
unset LC_ALL
export LANG=en_US.utf-8
export LC_TIME=cs_CZ.utf-8
ksh -c 'type date; date; /bin/date; export LC_TIME=en_US.utf-8; date;
/bin/date'
prints:
date is a shell builtin version of /usr/bin/date
St kv? 29 14:17:21 CEST 2013
St kv? 29 14:17:21 CEST 2013
St kv? 29 14:17:21 CEST 2013
Wed May 29 14:17:21 CEST 2013
also it seems impossible to disable this builtin:
$ type date
date is a shell builtin version of /usr/bin/date
$ builtin | grep date
/opt/ast/bin/date
$ builtin -d date
$ builtin -d /opt/ast/bin/date
$ type date
date is a shell builtin version of /usr/bin/date
which works for ordinary builtin:
$ type true
true is a shell builtin
$ builtin | grep true
true
$ builtin -d true
$ type true
true is a tracked alias for /usr/bin/true
Michal