FreeBSD Bugzilla – Attachment 15025 Details for
Bug 28007
added "force printing of non-print chars" flag to /bin/ls
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.28 KB, created by
Jordan.DeLong
on 2001-06-10 09:00:09 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Jordan.DeLong
Created:
2001-06-10 09:00:09 UTC
Size:
1.28 KB
patch
obsolete
>diff -u -ruN ls-dist/ls.1 ls/ls.1 >--- ls-dist/ls.1 Mon Mar 5 03:05:00 2001 >+++ ls/ls.1 Sun Jun 10 00:40:31 2001 >@@ -43,7 +43,7 @@ > .Nd list directory contents > .Sh SYNOPSIS > .Nm >-.Op Fl ABCFGHLPRTWabcdfgiklnoqrstu1 >+.Op Fl ABCFGHLPRTWabcdfgiklnoqrstu1w > .Op Ar > .Sh DESCRIPTION > For each operand that names a >@@ -191,6 +191,9 @@ > one entry per line. > This is the default when > output is not to a terminal. >+.It Fl w >+Force raw printing of non-printable characters. This is the default >+when output is not to a terminal. > .El > .Pp > The >@@ -210,7 +213,8 @@ > .Pp > The > .Fl B , >-.Fl b >+.Fl b , >+.Fl w , > and > .Fl q > options all override each other; the last one specified determines >diff -u -ruN ls-dist/ls.c ls/ls.c >--- ls-dist/ls.c Wed Aug 16 12:57:11 2000 >+++ ls/ls.c Sun Jun 10 00:34:22 2001 >@@ -163,7 +163,7 @@ > f_listdot = 1; > > fts_options = FTS_PHYSICAL; >- while ((ch = getopt(argc, argv, "1ABCFGHLPRTWabcdfgiklnoqrstu")) != -1) { >+ while ((ch = getopt(argc, argv, "1ABCFGHLPRTWabcdfgiklnoqrstuw")) != -1) { > switch (ch) { > /* > * The -1, -C and -l options all override each other so shell >@@ -268,6 +268,11 @@ > f_nonprint = 0; > f_octal = 0; > f_octal_escape = 1; >+ break; >+ case 'w': >+ f_nonprint = 0; >+ f_octal = 0; >+ f_octal_escape = 0; > break; > default: > case '?':
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 28007
: 15025