svn commit: [25970] trunk/busybox/shell

vda at busybox.net vda at busybox.net
Sun Apr 5 23:39:15 UTC 2009


Author: vda
Date: 2009-04-05 23:39:14 +0000 (Sun, 05 Apr 2009)
New Revision: 25970

Log:
hush: cosmetics, no code changes



Modified:
   trunk/busybox/shell/hush.c


Changeset:
Modified: trunk/busybox/shell/hush.c
===================================================================
--- trunk/busybox/shell/hush.c	2009-04-05 23:25:09 UTC (rev 25969)
+++ trunk/busybox/shell/hush.c	2009-04-05 23:39:14 UTC (rev 25970)
@@ -189,6 +189,8 @@
 }
 #define debug_printf_clean(...) fprintf(stderr, __VA_ARGS__)
 #define DEBUG_CLEAN 1
+#else
+#define DEBUG_CLEAN 0
 #endif
 
 #if DEBUG_EXPAND
@@ -2093,7 +2095,7 @@
 }
 
 
-#if !defined(DEBUG_CLEAN)
+#if !DEBUG_CLEAN
 #define free_pipe_list(head, indent) free_pipe_list(head)
 #define free_pipe(pi, indent)        free_pipe(pi)
 #endif
@@ -5637,6 +5639,7 @@
 {
 	char *string;
 	const char *name = argv[1] ? argv[1] : "REPLY";
+//TODO: check that argv[1] is a valid variable name
 
 	string = xmalloc_reads(STDIN_FILENO, xasprintf("%s=", name), NULL);
 	return set_local_var(string, 0, 0);



More information about the busybox-cvs mailing list