diff options
author | jilles <jilles@FreeBSD.org> | 2011-06-04 11:28:42 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2011-06-04 11:28:42 +0000 |
commit | 0383d0751d180215bdb2268fa235e97741d740c2 (patch) | |
tree | 80e24b5433d4edd6eabffe09170f84dca02e51f9 /bin/sh | |
parent | 52f95b8be3ede837bab7fffb8def746ab16c733a (diff) | |
download | FreeBSD-src-0383d0751d180215bdb2268fa235e97741d740c2.zip FreeBSD-src-0383d0751d180215bdb2268fa235e97741d740c2.tar.gz |
sh: Honour -n while processing -c string.
Diffstat (limited to 'bin/sh')
-rw-r--r-- | bin/sh/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/eval.c b/bin/sh/eval.c index a50c53f..404de33 100644 --- a/bin/sh/eval.c +++ b/bin/sh/eval.c @@ -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 |