From 4a1cbe018257e5cc198be01f2e2957e3d4934870 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 23 Aug 1999 01:17:58 +0000 Subject: Make -n flag compliant to the Single Unix Specification. To quote their ls(1) specification: -n The same as -l, except that the owner's UID and GID numbers are written, rather than the associated character strings. Reviewed by: green --- bin/ls/ls.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/ls/ls.c') diff --git a/bin/ls/ls.c b/bin/ls/ls.c index c37cb64..5b3a248 100644 --- a/bin/ls/ls.c +++ b/bin/ls/ls.c @@ -45,7 +45,7 @@ static const char copyright[] = static char sccsid[] = "@(#)ls.c 8.5 (Berkeley) 4/2/94"; #else static const char rcsid[] = - "$Id: ls.c,v 1.26 1999/08/19 11:36:12 sheldonh Exp $"; + "$Id: ls.c,v 1.27 1999/08/19 13:04:08 sheldonh Exp $"; #endif #endif /* not lint */ @@ -220,6 +220,8 @@ main(argc, argv) break; case 'n': f_numericonly = 1; + f_longform = 1; + f_column = f_singlecol = 0; break; case 'o': f_flags = 1; -- cgit v1.1