FreeBSD Bugzilla – Attachment #184215: Patch sh to end option processing after -c for
bug #220587
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
View
|
Details
|
Raw Unified
| Return to
bug 220587
| Differences between
Fix option processing for sh -c and add tests
Additional pre-fix invocation tests
Fix option processing for sh -c and add tests
Pre-fix tests for sh -c
Fix option processing for sh -c and add tests
and this patch
Collapse All
|
Expand All
(-)
b/bin/sh/options.c (+2 lines)
Lines 200-205 options(int cmdline)
Link Here
200
minusc = q;
200
minusc = q;
201
#ifdef NOHACK
201
#ifdef NOHACK
202
break;
202
break;
203
#else
204
return;
203
#endif
205
#endif
204
} else if (c == 'o') {
206
} else if (c == 'o') {
205
minus_o(*argptr, val);
207
minus_o(*argptr, val);
Return to
bug 220587