Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/ksh PR 49595 William Ahern: The exit status of "unset NO...
details: https://anonhg.NetBSD.org/src/rev/77cdb58861ef
branches: trunk
changeset: 348234:77cdb58861ef
user: dholland <dholland%NetBSD.org@localhost>
date: Tue Oct 11 06:31:07 2016 +0000
description:
PR 49595 William Ahern: The exit status of "unset NOTSET" should be 0, not 1.
(like 48312 but for ksh)
diffstat:
bin/ksh/c_sh.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r f46fd5dcb4bc -r 77cdb58861ef bin/ksh/c_sh.c
--- a/bin/ksh/c_sh.c Tue Oct 11 06:11:38 2016 +0000
+++ b/bin/ksh/c_sh.c Tue Oct 11 06:31:07 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: c_sh.c,v 1.15 2013/10/18 19:53:34 christos Exp $ */
+/* $NetBSD: c_sh.c,v 1.16 2016/10/11 06:31:07 dholland Exp $ */
/*
* built-in Bourne commands
@@ -6,7 +6,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: c_sh.c,v 1.15 2013/10/18 19:53:34 christos Exp $");
+__RCSID("$NetBSD: c_sh.c,v 1.16 2016/10/11 06:31:07 dholland Exp $");
#endif
@@ -691,8 +691,6 @@
if (unset_var) { /* unset variable */
struct tbl *vp = global(id);
- if (!(vp->flag & ISSET))
- ret = 1;
if ((vp->flag&RDONLY)) {
bi_errorf("%s is read only", vp->name);
return 1;
Home |
Main Index |
Thread Index |
Old Index