aboutsummaryrefslogtreecommitdiff
path: root/toys/toysh.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-11-15 18:30:30 -0600
committerRob Landley <rob@landley.net>2007-11-15 18:30:30 -0600
commit2c226859cfc911c4a1eea009897050a16714aeec (patch)
tree9ae05df2a1907a25eb8eec8af0e677775bb3e74b /toys/toysh.c
parent5d43eb420e036d993a9e100c9b46d7b78e323123 (diff)
downloadtoybox-2c226859cfc911c4a1eea009897050a16714aeec.tar.gz
Remove trailing whitespace (thanks to Charlie Shepherd), and a couple comment
tweaks.
Diffstat (limited to 'toys/toysh.c')
-rw-r--r--toys/toysh.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/toys/toysh.c b/toys/toysh.c
index f7d86ab9..ced1145d 100644
--- a/toys/toysh.c
+++ b/toys/toysh.c
@@ -1,5 +1,5 @@
/* vi: set sw=4 ts=4:
- *
+ *
* toysh - toybox shell
*
* Copyright 2006 Rob Landley <rob@landley.net>
@@ -80,11 +80,11 @@ static char *parse_pipeline(char *cmdline, struct pipeline *line)
if (!cmdline) return 0;
if (CFG_TOYSH_JOBCTL) line->cmdline = cmdline;
-
+
// Parse command into argv[]
for (;;) {
char *end;
-
+
// Skip leading whitespace and detect end of line.
while (isspace(*start)) start++;
if (!*start || *start=='#') {
@@ -192,7 +192,7 @@ int cd_main(void)
}
int exit_main(void)
-{
+{
exit(*toys.optargs ? atoi(*toys.optargs) : 0);
}
@@ -216,6 +216,6 @@ int toysh_main(void)
free(command);
}
}
-
+
return 1;
}