tweaking default `ls -l` output to use locale before posix
From:
Mike Frysinger
Subject:
tweaking default `ls -l` output to use locale before posix
Date:
Tue, 30 Aug 2005 00:09:27 -0400
User-agent:
KMail/1.8.2
i was going through some patches Gentoo has for coreutils to figure out which
are outdated/pointless/etc... with 5.3.0 when i came across this patch from
Mandrake:
--- src/ls.c
+++ src/ls.c
@@ -1612,5 +1612,7 @@
if (! style)
if (! (style = getenv ("TIME_STYLE")))
+ if (getenv ("POSIXLY_CORRECT"))
style = "posix-long-iso";
+ else style = "locale";
ignoring the broken formatting, i wonder if this change has been sent to the
list before for consideration (and i just couldnt find it in the archives) ?
the idea seems OK to me; the `ls -l` default format follows the user's locale
settings unless the env var POSIXLY_CORRET is set in which case we go with
the standard 'posix-long-iso' format
-mike
[Prev in Thread]
Current Thread
[Next in Thread]
tweaking default `ls -l` output to use locale before posix,
Mike Frysinger<=