[Lunar-commits] <lunar-tools> ltime: If LANG variable is set to another language than Western ls filter stops working after A character.

Stefan Wold ratler at lunar-linux.org
Tue Jun 7 09:10:58 CEST 2011


commit 322a726aca3e06b6149d4da4605dcdad0bc57cdb
Author: Stefan Wold <ratler at lunar-linux.org>
Date:   Tue Jun 7 09:10:58 2011 +0200

    ltime: If LANG variable is set to another language than Western ls filter stops working after A character.
    
    Patch supplied by Zbigniew Luszpinski.
---
 ltime/ltime |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ltime/ltime b/ltime/ltime
index 03a2e8d..0446d74 100755
--- a/ltime/ltime
+++ b/ltime/ltime
@@ -13,7 +13,7 @@
 
 show_timezones()
 {
-    for ITEM in `ls --hide=[a-z]* $LOCALTIME/$1`; do
+    for ITEM in `LANG=C ls --hide=[a-z]* $LOCALTIME/$1`; do
         if [ -n "$1" ]; then
             echo "$1/$ITEM"
         else


More information about the Lunar-commits mailing list