Re: LS -L command, year created field contains hour:minute instead of year

2003-01-08 Thread Giorgos Keramidas
On 2003-01-07 21:00, JoeB [EMAIL PROTECTED] wrote:
 The LS -L command will display the long info about files in a
 directory.  FBSD 4.0 through 4.5 LS -L command would display among
 other things the month/day/year the file was created.  FBSD versions
 4.6 and 4.7 displays the hour:minute the file was created in the
 year field instead of the year.

This is done to save some space in the output of ls(1) and yet print
useful information like the `hour:minute' of modification time for
files that have been modified recently (for some definition of
`recently').  The same is done in other BSDs too.  Here's output from
a NetBSD 1.6 system that shows similar behavior:

nbsd- touch -t 199805092317.25 lala
nbsd- ls -l
total 100
drwx--  2 gk736  nis   8192 Jan  6 08:25 bin
drwxr-xr-x  4 gk736  nis   8192 Jan  6 23:28 compress
-rw-r-  1 gk736  nis  30918 Jan  6 23:28 compress.tgz
-rw-r--r--  1 gk736  nis  0 May  9  1998 lala
-rw-r--r--  1 gk736  nis   2563 Jan  7 05:16 text

 To me this looks like there is a bug in the routine that populates
 the file's creation date field upon creation of the file and the LS
 -L command is just displaying what it finds in the year field which
 has been populated with incorrect data.

Hmmm.  I'm not sure I understand what is being said here.

There is no bug at this part of ls(1).  It simply prints the year at
column 8 for files that have been modified way back in the past, and
uses the same column to print the hour:minute of recently modified
files.

 I am looking for confirmation of my interpretation of the problem
 from other FBSD users, before I submit PR on it.

It's not really a problem, imho.  You can always use the -lT options
of ls(1) to print the full time information of file.

- Giorgos


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



LS -L command, year created field contains hour:minute instead of year

2003-01-07 Thread JoeB
The LS -L command will display the long info about files
in a directory.  FBSD 4.0 through 4.5 LS -L command would
display among other things the month/day/year the file
was created.  FBSD versions 4.6 and 4.7 displays the
hour:minute the file was created in the year field instead
of the year.  To me this looks like there is a bug in the
routine that populates the file's creation date field upon
creation of the file and the LS -L command is just displaying
what it finds in the year field which has been populated
with incorrect data.

I am looking for confirmation of my interpretation of the
problem from other FBSD users, before I submit PR on it.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: LS -L command, year created field contains hour:minute instead of year

2003-01-07 Thread JoeB
More info on problem.
I have files created by FBSD 4.5 before 6/19/02 that have the year
2002 in the
year field. When in moved to 4.6  6/21/02 I have files created
during the rest
of 2002 that  have dates with the time in the year field.
Now 1/5/03 I went to 4.7 and see the same problem.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of JoeB
Sent: Tuesday, January 07, 2003 9:00 PM
To: FBSDQ
Subject: LS -L command, year created field contains hour:minute
instead of year

The LS -L command will display the long info about files
in a directory.  FBSD 4.0 through 4.5 LS -L command would
display among other things the month/day/year the file
was created.  FBSD versions 4.6 and 4.7 displays the
hour:minute the file was created in the year field instead
of the year.  To me this looks like there is a bug in the
routine that populates the file's creation date field upon
creation of the file and the LS -L command is just displaying
what it finds in the year field which has been populated
with incorrect data.

I am looking for confirmation of my interpretation of the
problem from other FBSD users, before I submit PR on it.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: LS -L command, year created field contains hour:minute instead of year

2003-01-07 Thread Daniel Goepp
Please find the humor in this, I'm not at all trying to be a pain in the
ass here...but since the OS is case sensitive, I chuckled when I read
this, thinking 'LS -L' is not a command.

Sorry...carry on...

-Daniel


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of JoeB
Sent: Tuesday, January 07, 2003 9:00 PM
To: FBSDQ
Subject: LS -L command, year created field contains hour:minute instead
of year

The LS -L command will display the long info about files
in a directory.  FBSD 4.0 through 4.5 LS -L command would
display among other things the month/day/year the file
was created.  FBSD versions 4.6 and 4.7 displays the
hour:minute the file was created in the year field instead
of the year.  To me this looks like there is a bug in the
routine that populates the file's creation date field upon
creation of the file and the LS -L command is just displaying
what it finds in the year field which has been populated
with incorrect data.

I am looking for confirmation of my interpretation of the
problem from other FBSD users, before I submit PR on it.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message