summaryrefslogtreecommitdiffstats
path: root/bin/ls/ls.c
diff options
context:
space:
mode:
authorchris <chris@FreeBSD.org>1999-08-23 01:17:58 +0000
committerchris <chris@FreeBSD.org>1999-08-23 01:17:58 +0000
commit4a1cbe018257e5cc198be01f2e2957e3d4934870 (patch)
tree5adace57185709306beeb1721f55fb92eab58fb0 /bin/ls/ls.c
parentee3300a47980c34a2083812581aec96ca284f92e (diff)
downloadFreeBSD-src-4a1cbe018257e5cc198be01f2e2957e3d4934870.zip
FreeBSD-src-4a1cbe018257e5cc198be01f2e2957e3d4934870.tar.gz
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
Diffstat (limited to 'bin/ls/ls.c')
-rw-r--r--bin/ls/ls.c4
1 files changed, 3 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud