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

Re: Stranezza con `ls'



>>>>> On Thu, 4 Jul 2002 18:13:45 +0200, lele@seldati.it (Lele Gaifax) said:

    LG> Ciao a tutti, da un po' di giorni osservo una cosa strana:

    LG> $ unset LANG 
    LG> $ ls -l 
    LG> -rw-rw-r-- 1 lele lele 11539 Mar 4 22:31 lyx 
    LG> -rw-rw-r-- 1 lele lele 207873 Jun 20 2000 transit
    LG> -rw------- 1 lele lele 0 Dec 8 2000 trash 
    LG> $ date Thu Jul 4 18:12:00 CEST 2002

    LG> $ export LANG=it_IT@euro 
    LG> $ ls -l 
    LG> -rw-rw-r-- 1 lele lele 11539 03-04 22:31 lyx 
    LG> -rw-rw-r-- 1 lele lele 207873 2000-06-20 transit 
    LG> -rw------- 1 lele lele 0 2000-12-08 trash 
    LG> $ date gio lug 4 18:12:06 CEST 2002

    LG> Non ho ben capito a chi dare la colpa, eccetto `ls' tutto
    LG> sembra immutato... Come mai mi formatta il timestamp in quella
    LG> maniera sì barbara??

Per la cronaca, il "difetto" è da imputare alle ultime fileutils:

* ls can now display dates and times in one of four time styles:

  - The `full-iso' time style gives full ISO-style time stamps like
    `2001-05-14 23:45:56.477817180 -0700'.
  - The 'iso' time style gives ISO-style time stamps like '2001-05-14 '
    and '05-14 23:45'.
  - The 'locale' time style gives locale-dependent time stamps like
    'touko  14  2001' and 'touko  14 23:45' (in a Finnish locale).
  - The 'posix-iso' time style gives traditional POSIX-locale
    time stamps like 'May 14  2001' and 'May 14 23:45' unless the user
    specifies a non-POSIX locale, in which case it uses ISO-style dates.
    This is the default.

  You can specify a time style with an option like --time-style='iso'
  or with an environment variable like TIME_STYLE='iso'.  GNU Emacs 21
  and later can parse ISO dates, but older Emacs versions cannot, so
  if you are using an older version of Emacs outside the default POSIX
  locale, you may need to set TIME_STYLE="locale".

ciao, lele.
-- 
nickname: Lele Gaifax	| Quando vivro' di quello che ho pensato ieri
real: Emanuele Gaifas	| comincero' ad aver paura di chi mi copia.
email: lele@seldati.it	|		-- Fortunato Depero, 1929.


-- 
To UNSUBSCRIBE, email to debian-italian-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: