SOURCES: pdksh-unset.patch (NEW) According to http://www.opengroup...
arekm
arekm at pld-linux.org
Sun Sep 2 14:54:30 CEST 2007
Author: arekm Date: Sun Sep 2 12:54:30 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
According to http://www.opengroup.org/onlinepubs/009695399/utilities/unset.html unsetting variable or function that wasn't set is correct operation which shouldn't fail.
---- Files affected:
SOURCES:
pdksh-unset.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/pdksh-unset.patch
diff -u /dev/null SOURCES/pdksh-unset.patch:1.1
--- /dev/null Sun Sep 2 14:54:30 2007
+++ SOURCES/pdksh-unset.patch Sun Sep 2 14:54:25 2007
@@ -0,0 +1,23 @@
+--- c_sh.c~ 2007-09-02 14:36:13.000000000 +0200
++++ c_sh.c 2007-09-02 14:44:13.237043334 +0200
+@@ -688,8 +688,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;
+--- c_sh.c~ 2007-09-02 14:45:15.000000000 +0200
++++ c_sh.c 2007-09-02 14:49:50.317014862 +0200
+@@ -694,8 +694,7 @@
+ }
+ unset(vp, strchr(id, '[') ? 1 : 0);
+ } else { /* unset function */
+- if (define(id, (struct op *) NULL))
+- ret = 1;
++ define(id, (struct op *) NULL);
+ }
+ return ret;
+ }
================================================================
More information about the pld-cvs-commit
mailing list