mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 06:14:27 +00:00
sh: Honour -n while processing -c string.
This commit is contained in:
parent
564a091bd2
commit
9338c85c31
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222676
|
@ -165,7 +165,7 @@ evalstring(char *s, int flags)
|
|||
setstackmark(&smark);
|
||||
setinputstring(s, 1);
|
||||
while ((n = parsecmd(0)) != NEOF) {
|
||||
if (n != NULL) {
|
||||
if (n != NULL && !nflag) {
|
||||
if (flags_exit && preadateof())
|
||||
evaltree(n, flags | EV_EXIT);
|
||||
else
|
||||
|
|
3
tools/regression/bin/sh/execution/set-n4.0
Normal file
3
tools/regression/bin/sh/execution/set-n4.0
Normal file
|
@ -0,0 +1,3 @@
|
|||
# $FreeBSD$
|
||||
|
||||
$SH -nc 'echo bad'
|
Loading…
Reference in a new issue