FreeBSD Bugzilla – Attachment 48019 Details for
Bug 73500
'set +o' in /bin/sh does not include unset options
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
options.c.diff
options.c.diff (text/plain), 774 bytes, created by
Jilles Tjoelker
on 2004-11-03 21:10:33 UTC
(
hide
)
Description:
options.c.diff
Filename:
MIME Type:
Creator:
Jilles Tjoelker
Created:
2004-11-03 21:10:33 UTC
Size:
774 bytes
patch
obsolete
>--- src/bin/sh/options.c.orig Wed Apr 7 10:12:45 2004 >+++ src/bin/sh/options.c Wed Nov 3 18:42:45 2004 >@@ -196,7 +196,7 @@ > STATIC void > minus_o(char *name, int val) > { >- int doneset, i; >+ int i; > > if (name == NULL) { > if (val) { >@@ -207,16 +207,11 @@ > optlist[i].val ? "on" : "off"); > } else { > /* Output suitable for re-input to shell. */ >- for (doneset = i = 0; i < NOPTS; i++) >- if (optlist[i].val) { >- if (!doneset) { >- out1str("set"); >- doneset = 1; >- } >- out1fmt(" -o %s", optlist[i].name); >- } >- if (doneset) >- out1c('\n'); >+ out1str("set"); >+ for (i = 0; i < NOPTS; i++) >+ out1fmt(" %co %s", optlist[i].val ? '-' : '+', >+ optlist[i].name); >+ out1c('\n'); > } > } else { > for (i = 0; i < NOPTS; i++)
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 73500
: 48019