-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Jim Reisert AD1C on 11/6/2009 11:38 AM: >> In particular, --time-style in an alias, or TIME_STYLE in your >> environment, is your friend. > > Thanks, Eric. I tried this but could not get what I wanted: > > LTDENA-REISERT:c/Home> ls -al --time-style="posix-long-iso" > > -rwx------ 1 reisert Domain Users 3326 2009-10-30 12:51 .XWinrc > -rwx------ 1 reisert Users 663 2009-02-26 10:37 .Xdefaults > > From the info link you sent me, it says: > > `posix-STYLE' > List POSIX-locale timestamps if the `LC_TIME' locale category > is POSIX, STYLE timestamps otherwise. For example, the > `posix-long-iso' style lists timestamps like `Mar 30 2002' > and `Mar 30 23:45' when in the POSIX locale, and like > `2002-03-30 23:45' otherwise. > > I must not be in a POSIX LOCALE, then. LC_TIME isn't defined, nor is LOCALE.
Correct - if LC_ALL, LC_TIME, and LANG are all undefined, then you are in the C.UTF-8 locale (cygwin's default), which, since it is not "C", is not _the_ POSIX locale. Likewise, if LANG is en_US.UTF-8, but LC_ALL and LC_TIME are unset, then you are in the en_US.UTF-8 locale, which is not the POSIX locale. > > How do I make this work, while maintaining: > > LANG=en_US.UTF-8 Well, did you try setting LC_TIME=C? That would mean that LC_TIME is then POSIX, overriding LANG; and as long as LC_ALL is unset, then that would make the difference. Or, you could use TIME_STYLE='+%b %e %Y %b %e %H:%M' to force the POSIX interpretation regardless of locale. - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr4EkUACgkQ84KuGfSFAYDlzQCfWQMdyvD0q0+GPgsc4dDY7lH9 v2EAn0Gf5ydK3EXSdRuwxcDk6TA6AM3P =kWjz -----END PGP SIGNATURE----- -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple