[PATCH] hush.c - export -n flag support

Mike Frysinger vapier at gentoo.org
Mon Apr 20 19:26:43 UTC 2009


On Monday 20 April 2009 15:11:59 Bayram Kurumahmut wrote:
> I forgot to add message body to my previous mail. It follows:
>
> Added two new files: shell/hush_test/export-n.tests and
> shell/hush_test/export-n.right
> Added set then export -n test and test cases from my first mail
> Config.in help text changed

still using "#ifdef" rather than "#if" though ...

+			if (flag_n) {
+				if (getenv(name))
+					unsetenv(name);
+				continue;
+			} else

shouldnt this be modifying the export bit rather than unsetting the var ?

	var = get_local_var(name);
	if (var)
		var->flg_export = 0;
	continue;
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090420/689592fa/attachment.pgp>


More information about the busybox mailing list