delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/06/13:38:31

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4AF3967D.5@byu.net>
References: <20091103145437 DOT GM7831 AT calimero DOT vinschen DOT de> <806a89db0911031113m2cf926aw7bc0be53fa5919cb AT mail DOT gmail DOT com> <4AF08991 DOT 6050600 AT dronecode DOT org DOT uk> <20091103195411 DOT GA31004 AT ednor DOT casa DOT cgf DOT cx> <806a89db0911051219j72e0eef2x58558849738442eb AT mail DOT gmail DOT com> <4AF3967D DOT 5 AT byu DOT net>
Date: Fri, 6 Nov 2009 11:38:21 -0700
Message-ID: <806a89db0911061038x2358b217k99d8eaf17e3aa949@mail.gmail.com>
Subject: Re: [1.7] Updated: cygwin-1.7.0-63
From: Jim Reisert AD1C <jjreisert AT alum DOT mit DOT edu>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Thu, Nov 5, 2009 at 8:22 PM, Eric Blake <ebb9 AT byu DOT net> wrote:

> Yes. =A0Read the manual:
>
> $ info ls 'formatting file timestamps'
>
> 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=3D"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 .Xdefaul=
ts

=46rom 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 LOCA=
LE.

How do I make this work, while maintaining:

    LANG=3Den_US.UTF-8

- Jim

--=20
Jim Reisert AD1C, <jjreisert AT alum DOT mit DOT edu>, http://www.ad1c.us

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019