niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » FreeBSD » mail-lists » Architecture
/bin/ls -T option logic/doc
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
John De Boskey
*nix forums beginner


Joined: 01 Apr 2002
Posts: 3

PostPosted: Mon Apr 01, 2002 2:15 am    Post subject: /bin/ls -T option logic/doc Reply with quote

Hi,

The -T option to ls specifies to display complete time
information. However, this option only has effect when the
-l (ell) option is also specfied. Two alternatives:

- Update the manpage to reflect the dependancy as is already
done with other options.

- Update the -T option processing to automatically imply
the -l option.


I believe the manpage update is probably the safest, but
I don't know if it is the most correct. I can't seem to find
any standards doc on this issue related to -T.

Pointers?

Thanks!
John

ps: Also noted in the ls.1 diff is a spelling correction which
can be done regardless of -T.

Index: ls.1
===================================================================
RCS file: /home/ncvs/src/bin/ls/ls.1,v
retrieving revision 1.62
diff -u -r1.62 ls.1
--- ls.1 9 Jan 2002 13:29:39 -0000 1.62
+++ ls.1 1 Apr 2002 03:51:35 -0000
@@ -137,8 +137,12 @@
.It Fl R
Recursively list subdirectories encountered.
.It Fl T
-Display complete time information for the file, including
-month, day, hour, minute, second, and year.
+When used with the
+.Fl l
+(lowercase letter
+.Dq ell )
+option, display complete time information for the file, including
+month, day, hour, minute, second, and year.
.It Fl W
Display whiteouts when scanning directories.
.It Fl Z
@@ -167,7 +171,7 @@
.Pq Fl l
format output.
.It Fl h
-When used wih the
+When used with the
.Fl l
option, use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte
and Petabyte in order to reduce the number of digits to three or less
Index: ls.c
===================================================================
RCS file: /home/ncvs/src/bin/ls/ls.c,v
retrieving revision 1.56
diff -u -r1.56 ls.c
--- ls.c 19 Feb 2002 00:05:50 -0000 1.56
+++ ls.c 1 Apr 2002 03:53:50 -0000
@@ -263,6 +263,8 @@
break;
case 'T':
f_sectime = 1;
+ f_longform = 1;
+ f_singlecol = 0;
break;
case 't':
f_timesort = 1;

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 5:24 am | All times are GMT
navigation Forum index » *nix » BSD » FreeBSD » mail-lists » Architecture
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts shortcircuit logic in plpsql Joseph Shraibman PostgreSQL 1 Wed Jul 19, 2006 3:12 am
No new posts aCC option to load all the symbols during linking Bujji HP-UX 2 Fri Jul 14, 2006 6:18 pm
No new posts what option do i use for "find" command to search up to c... yaru22 shell 8 Fri Jul 07, 2006 2:25 pm
No new posts line [x/y] splitting - conf option? Rob Munsch Exim 4 Thu Jul 06, 2006 3:23 pm
No new posts Squid 2.6 and option httpd_accel_with_proxy from 2.5 vers... Robert Squid 1 Wed Jul 05, 2006 6:12 am

Magazine Subscriptions | Credit Card information | Credit Counseling | Debt Consolidation | Destin, Florida
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1036s ][ Queries: 16 (0.0307s) ][ GZIP on - Debug on ]