svn commit: trunk/busybox/shell

landley at busybox.net landley at busybox.net
Wed Sep 20 21:57:36 UTC 2006


Author: landley
Date: 2006-09-20 14:57:36 -0700 (Wed, 20 Sep 2006)
New Revision: 16166

Log:
The version checked into the tree is a snapshot of an unifinished applet, and
you just made lots of ">>>>>>> mine" lines show up in my working copy of this.

Please don't do that again.


Modified:
   trunk/busybox/shell/bbsh.c


Changeset:
Modified: trunk/busybox/shell/bbsh.c
===================================================================
--- trunk/busybox/shell/bbsh.c	2006-09-20 21:41:13 UTC (rev 16165)
+++ trunk/busybox/shell/bbsh.c	2006-09-20 21:57:36 UTC (rev 16166)
@@ -1,5 +1,5 @@
 /* vi: set ts=4 :
- *
+ * 
  * bbsh - busybox shell
  *
  * Copyright 2006 Rob Landley <rob at landley.net>
@@ -51,7 +51,7 @@
 // What we know about a single process.
 struct command {
 	struct command *next;
-	int flags;		// exit, suspend, && ||
+	int flags;		// exit, suspend, && || 
 	int pid;		// pid (or exit code)
 	int argc;
 	char *argv[0];
@@ -125,9 +125,9 @@
 			return 0;
 		}
 
-		// Allocate next command structure if necessary
+		// Allocate next command structure if necessary		
 		if (!*cmd) *cmd = xzalloc(sizeof(struct command)+8*sizeof(char *));
-
+		
 		// Parse next argument and add the results to argv[]
 		end = parse_word(start, cmd);
 
@@ -138,7 +138,7 @@
 					start++;
 					break;
 				}
-				// handle | & < > >> << || &&
+				// handle | & < > >> << || && 
 			}
 			break;
 		}
@@ -160,7 +160,7 @@
 	if (cmd->argc==2 && !strcmp(cmd->argv[0],"cd"))
 		chdir(cmd->argv[1]);
 	else if(!strcmp(cmd->argv[0],"exit"))
-		exit(cmd->argc>1 ? atoi(cmd->argv[1]) : 0);
+		exit(cmd->argc>1 ? atoi(cmd->argv[1]) : 0); 
 	else {
 		int status;
 		pid_t pid=fork();
@@ -217,6 +217,6 @@
 		}
 		if (ENABLE_FEATURE_CLEAN_UP) free(command);
 	}
-
+		
 	return 1;
 }




More information about the busybox-cvs mailing list