ls: fix --color handling. Closes bug 435.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2009-07-02 14:25:51 +02:00
parent 5478aaf5b8
commit 5508363fd0
5 changed files with 22 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
[ -n "$d" ] || d=..
ls -1 "$d" > logfile.gnu
busybox ls -1 "$d" > logfile.bb
cmp logfile.gnu logfile.bb
LC_ALL=C ls -1 "$d" > logfile.gnu
LC_ALL=C busybox ls -1 "$d" > logfile.bb
diff -ubw logfile.gnu logfile.bb

View File

@@ -1,4 +1,4 @@
[ -n "$d" ] || d=..
ls -h "$d" > logfile.gnu
busybox ls -h "$d" > logfile.bb
cmp logfile.gnu logfile.bb
LC_ALL=C ls -h "$d" > logfile.gnu
LC_ALL=C busybox ls -h "$d" > logfile.bb
diff -ubw logfile.gnu logfile.bb

View File

@@ -1,4 +1,4 @@
[ -n "$d" ] || d=..
LC_ALL=C ls -l "$d" > logfile.gnu
busybox ls -l "$d" > logfile.bb
diff -w logfile.gnu logfile.bb
LC_ALL=C busybox ls -l "$d" > logfile.bb
diff -ubw logfile.gnu logfile.bb

View File

@@ -1,4 +1,4 @@
[ -n "$d" ] || d=..
LC_ALL=C ls -1s "$d" > logfile.gnu
busybox ls -1s "$d" > logfile.bb
cmp logfile.gnu logfile.bb
LC_ALL=C busybox ls -1s "$d" > logfile.bb
diff -ubw logfile.gnu logfile.bb