1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

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
This commit is contained in:
Chris Costello 1999-08-23 01:17:58 +00:00
parent 9998ec0eb0
commit c9392e0135
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50200

View File

@ -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;