diff options
Diffstat (limited to 'shell/lash.c')
-rw-r--r-- | shell/lash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/lash.c b/shell/lash.c index 09067fda0..f938a74b9 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -1138,7 +1138,7 @@ static int pseudo_exec(struct child_prog *child) | |||
1138 | * if this is one of those cases. | 1138 | * if this is one of those cases. |
1139 | */ | 1139 | */ |
1140 | for (x = bltins; x->cmd; x++) { | 1140 | for (x = bltins; x->cmd; x++) { |
1141 | if (strcmp(child->argv[0], x->cmd) == 0 ) { | 1141 | if (strcmp(child->argv[0], x->cmd) == 0) { |
1142 | _exit(x->function(child)); | 1142 | _exit(x->function(child)); |
1143 | } | 1143 | } |
1144 | } | 1144 | } |
@@ -1262,7 +1262,7 @@ static int run_command(struct job *newjob, int inbg, int outpipe[2]) | |||
1262 | } | 1262 | } |
1263 | 1263 | ||
1264 | for (x = bltins; x->cmd; x++) { | 1264 | for (x = bltins; x->cmd; x++) { |
1265 | if (strcmp(child->argv[0], x->cmd) == 0 ) { | 1265 | if (strcmp(child->argv[0], x->cmd) == 0) { |
1266 | int rcode; | 1266 | int rcode; |
1267 | int squirrel[] = {-1, -1, -1}; | 1267 | int squirrel[] = {-1, -1, -1}; |
1268 | setup_redirects(child, squirrel); | 1268 | setup_redirects(child, squirrel); |