Patch by Roy Marples, see http://bugs.debian.org/415119

When LC_ALL is set to something like en_GB.UTF-8 then dash makes the
builtincmd structure in the wrong lexical order, breaking bsearch,
specifically the truecmd :

$ :
dash: :: not found

The attached patch addresses the issue.

Thanks

Roy Marples
---
 src/mkbuiltins |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mkbuiltins b/src/mkbuiltins
index f3f91c5..91fe6b8 100644
--- a/src/mkbuiltins
+++ b/src/mkbuiltins
@@ -65,7 +65,7 @@ awk '{        for (i = 2 ; i <= NF ; i++) {
                if ($i ~ /^-/)
                        line = $(++i) "\t" line
                print line
-       }}' $temp | 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)
-- 
1.5.0.5



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to