freebsd-dev/tools/regression/bin/sh
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
..
builtins sh: Apply locale vars on builtins, recognize LC_MESSAGES as a locale var. 2010-05-05 21:48:40 +00:00
errors sh: Do not abort on a redirection error on a compound command. 2010-03-14 14:24:35 +00:00
execution Fix some cases where file descriptors from redirections leak to programs. 2009-11-29 22:33:59 +00:00
expansion sh: Add some more tests for ${v#...} and ${v%...}. 2010-04-23 17:26:49 +00:00
parameters sh: On startup of the shell, use PWD from the environment if it is valid. 2010-04-17 14:35:46 +00:00
parser sh: Fix various things about expansions: 2010-04-03 20:55:56 +00:00
set-e Add tests for r193169. 2009-05-31 17:23:27 +00:00
Makefile
regress.sh Add test cases for the command built-in, including its -v and -V options which 2005-10-28 14:02:42 +00:00
regress.t