klibc-bot for Ben Hutchings
2016-Jan-06 01:54 UTC
[klibc] [klibc:master] dash: mkbuiltins: Fix sort order harder
Commit-ID: 5125a8b74971fc22fdc74cfc9dc8e04a4f5c0e4b Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=5125a8b74971fc22fdc74cfc9dc8e04a4f5c0e4b Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Wed, 6 Jan 2016 01:20:02 +0000 Committer: H. Peter Anvin <hpa at linux.intel.com> CommitDate: Tue, 5 Jan 2016 17:50:50 -0800 [klibc] dash: mkbuiltins: Fix sort order harder LC_COLLATE can be overriden by LC_ALL, so set LC_ALL instead when running sort. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> Signed-off-by: H. Peter Anvin <hpa at linux.intel.com> --- usr/dash/mkbuiltins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/dash/mkbuiltins b/usr/dash/mkbuiltins index f562ae2..70308bd 100644 --- a/usr/dash/mkbuiltins +++ b/usr/dash/mkbuiltins @@ -78,7 +78,7 @@ awk '{ for (i = 2 ; i <= NF ; i++) { if ($i ~ /^-/) line = $(++i) "\t" line print line - }}' $temp | LC_COLLATE=C sort -k 1,1 | tee $temp2 | awk '{ + }}' $temp | LC_ALL=C sort -k 1,1 | tee $temp2 | awk '{ opt = "" if (NF > 2) { opt = substr($2, 2)
Seemingly Similar Threads
- [klibc:update-dash] Revert " dash: mkbuiltins: Fix sort order harder"
- [klibc:update-dash] Revert " dash: mkbuiltins: Fix sort order harder"
- [klibc:update-dash] dash: builtin: Clear LC_ALL in mkbuiltins
- [klibc:update-dash] builtin: Clear LC_ALL in mkbuiltins
- [klibc:update-dash] dash: shell: Fix build on Solaris 9