Force raw printing of non-printable characters via the -w option.
PR: bin/28007
This commit is contained in:
parent
5dda5d0df0
commit
47f884f098
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88603
@ -43,7 +43,7 @@
|
||||
.Nd list directory contents
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl ABCFGHLPRTWZabcdfghiklnoqrstu1
|
||||
.Op Fl ABCFGHLPRTWZabcdfghiklnoqrstuw1
|
||||
.Op Ar
|
||||
.Sh DESCRIPTION
|
||||
For each operand that names a
|
||||
@ -196,6 +196,9 @@ of the file for sorting
|
||||
.Pq Fl t
|
||||
or printing
|
||||
.Pq Fl l .
|
||||
.It Fl w
|
||||
Force raw printing of non-printable characters. This is the default
|
||||
when output is not to a terminal.
|
||||
.It Fl \&1
|
||||
(The numeric digit ``one.'') Force output to be
|
||||
one entry per line.
|
||||
@ -220,7 +223,8 @@ the file time used.
|
||||
.Pp
|
||||
The
|
||||
.Fl B ,
|
||||
.Fl b
|
||||
.Fl b ,
|
||||
.Fl w ,
|
||||
and
|
||||
.Fl q
|
||||
options all override each other; the last one specified determines
|
||||
|
@ -166,7 +166,7 @@ main(argc, argv)
|
||||
f_listdot = 1;
|
||||
|
||||
fts_options = FTS_PHYSICAL;
|
||||
while ((ch = getopt(argc, argv, "1ABCFGHLPRTWZabcdfghiklnoqrstu")) != -1) {
|
||||
while ((ch = getopt(argc, argv, "1ABCFGHLPRTWZabcdfghiklnoqrstuw")) != -1) {
|
||||
switch (ch) {
|
||||
/*
|
||||
* The -1, -C and -l options all override each other so shell
|
||||
@ -275,6 +275,11 @@ main(argc, argv)
|
||||
f_octal = 0;
|
||||
f_octal_escape = 1;
|
||||
break;
|
||||
case 'w':
|
||||
f_nonprint = 0;
|
||||
f_octal = 0;
|
||||
f_octal_escape = 0;
|
||||
break;
|
||||
case 'Z':
|
||||
f_lomac = 1;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user