[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ls -l format changed ?



Peter Makholm wrote:

> The 'offending' locale setting is LC_TIME. I could be even worse how
> it changes format depending on how old the files are:
> 
> pma-20% LC_TIME=en_US ls -ld debian design 
> drwxrwsr-x    4 brother  brother      4096 06-27 11:22 debian
> drwxrwsr-x    2 brother  brother      4096 2001-03-05  design
> pma-20% 
> 
> But we all know that if you want to parse output from programs you
> better set LC_ALL to C or POSIX, so only previously broken programs
> will see this change.

However, 'ls -l --full-time' seems to ignore LC_TIME; it always outputs
the date in yyyy-mm-dd hh:mm:ss.00000000 format. Or so it seems here.

Craig

Attachment: pgpcjPnWv1ZZj.pgp
Description: PGP signature


Reply to: