freebsd-dev/bin
Jilles Tjoelker e4b50334ec sh: Apply locale vars on builtins, recognize LC_MESSAGES as a locale var.
This allows doing things like LC_ALL=C some_builtin to run a builtin under a
different locale, just like is possible with external programs. The
immediate reason is that this allows making printf(1) a builtin without
breaking things like LC_NUMERIC=C printf '%f\n' 1.2

This change also affects special builtins, as even though the assignment is
persistent, the export is only to the builtin (unless the variable was
already exported).

Note: for this to work for builtins that also exist as external programs
such as /bin/test, the setlocale() call must be under #ifndef SHELL. The
shell will do the setlocale() calls which may not agree with the environment
variables.
2010-05-05 21:48:40 +00:00
..
cat
chflags
chio
chmod
cp Change all our own code to use st_*tim instead of st_*timespec. 2010-03-28 13:16:08 +00:00
csh
date
dd
df
domainname
echo
ed
expr
getfacl
hostname
kenv
kill
ln symlink(7): Add lpathconf(2) and *at system calls. 2010-04-25 13:29:59 +00:00
ls Change all our own code to use st_*tim instead of st_*timespec. 2010-03-28 13:16:08 +00:00
mkdir
mv
pax Merge OpenBSD revisions 1.4 through 1.9, mostly style cleanups. 2010-03-30 23:14:35 +00:00
pkill
ps Update the list of the process flags for P_WKILLED. 2010-04-13 08:54:53 +00:00
pwait mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
pwd
rcp Change all our own code to use st_*tim instead of st_*timespec. 2010-03-28 13:16:08 +00:00
realpath
rm
rmail
rmdir
setfacl Switch to our preferred license text. 2010-03-07 07:59:05 +00:00
sh sh: Apply locale vars on builtins, recognize LC_MESSAGES as a locale var. 2010-05-05 21:48:40 +00:00
sleep
stty
sync
test Change all our own code to use st_*tim instead of st_*timespec. 2010-03-28 13:16:08 +00:00
uuidgen
Makefile
Makefile.inc