svn commit: trunk/busybox/shell

vda at busybox.net vda at busybox.net
Sat Apr 14 15:08:42 UTC 2007


Author: vda
Date: 2007-04-14 08:08:41 -0700 (Sat, 14 Apr 2007)
New Revision: 18440

Log:
msh: style fixes
shell/README - a place to record things about busybox shells


Added:
   trunk/busybox/shell/README

Modified:
   trunk/busybox/shell/msh.c


Changeset:
Added: trunk/busybox/shell/README
===================================================================
--- trunk/busybox/shell/README	                        (rev 0)
+++ trunk/busybox/shell/README	2007-04-14 15:08:41 UTC (rev 18440)
@@ -0,0 +1,6 @@
+Various bits of what is known about busybox shells, in no particular order.
+
+2007-04-14
+lash, hush: both do setsid() and as a result don't have ctty!
+Ctrl-C doesn't work for any child (try rm -i), etc...
+lash: bare ">file" doesn't create a file (hush works)

Modified: trunk/busybox/shell/msh.c
===================================================================
--- trunk/busybox/shell/msh.c	2007-04-14 13:22:09 UTC (rev 18439)
+++ trunk/busybox/shell/msh.c	2007-04-14 15:08:41 UTC (rev 18440)
@@ -2117,7 +2117,6 @@
 
 static struct op *namelist(struct op *t)
 {
-
 	DBGPRINTF7(("NAMELIST: enter, t=%p, type %s, iolist=%p\n", t,
 				T_CMD_NAMES[t->type], iolist));
 
@@ -2658,7 +2657,7 @@
 
 	};
 
-  broken:
+ broken:
 	t->words = wp2;
 	isbreak = 0;
 	freehere(areanum);
@@ -2681,13 +2680,13 @@
 
 typedef int (*builtin_func_ptr)(struct op *);
 
-static builtin_func_ptr inbuilt(const char *s) {
+static builtin_func_ptr inbuilt(const char *s)
+{
 	const struct builtincmd *bp;
 
 	for (bp = builtincmds; bp->name; bp++)
 		if (strcmp(bp->name, s) == 0)
 			return bp->builtinfunc;
-
 	return NULL;
 }
 
@@ -4379,8 +4378,7 @@
 	return wb;
 }
 
-static
-char **getwords(struct wdblock *wb)
+static char **getwords(struct wdblock *wb)
 {
 	char **wd;
 	int nb;




More information about the busybox-cvs mailing list