diff options
Diffstat (limited to 'shell/msh.c')
-rw-r--r-- | shell/msh.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/shell/msh.c b/shell/msh.c index eb17eb668..0cb81fee7 100644 --- a/shell/msh.c +++ b/shell/msh.c | |||
@@ -1268,7 +1268,7 @@ static int newfile(char *s) | |||
1268 | f = open(s, O_RDONLY); | 1268 | f = open(s, O_RDONLY); |
1269 | if (f < 0) { | 1269 | if (f < 0) { |
1270 | prs(s); | 1270 | prs(s); |
1271 | err(": cannot open"); | 1271 | err(": can't open"); |
1272 | return 1; | 1272 | return 1; |
1273 | } | 1273 | } |
1274 | } | 1274 | } |
@@ -2770,7 +2770,7 @@ static int forkexec(struct op *t, int *pin, int *pout, int no_fork, char **wp) | |||
2770 | DBGPRINTF3(("FORKEXEC: calling vfork()...\n")); | 2770 | DBGPRINTF3(("FORKEXEC: calling vfork()...\n")); |
2771 | newpid = vfork(); | 2771 | newpid = vfork(); |
2772 | if (newpid == -1) { | 2772 | if (newpid == -1) { |
2773 | DBGPRINTF(("FORKEXEC: ERROR, cannot vfork()!\n")); | 2773 | DBGPRINTF(("FORKEXEC: ERROR, can't vfork()!\n")); |
2774 | return -1; | 2774 | return -1; |
2775 | } | 2775 | } |
2776 | 2776 | ||
@@ -2820,7 +2820,7 @@ static int forkexec(struct op *t, int *pin, int *pout, int no_fork, char **wp) | |||
2820 | if (iopp) { | 2820 | if (iopp) { |
2821 | if (bltin && bltin != doexec) { | 2821 | if (bltin && bltin != doexec) { |
2822 | prs(bltin_name); | 2822 | prs(bltin_name); |
2823 | err(": cannot redirect shell command"); | 2823 | err(": can't redirect shell command"); |
2824 | if (forked) | 2824 | if (forked) |
2825 | _exit(-1); | 2825 | _exit(-1); |
2826 | return -1; | 2826 | return -1; |
@@ -2840,7 +2840,7 @@ static int forkexec(struct op *t, int *pin, int *pout, int no_fork, char **wp) | |||
2840 | /* Builtin in pipe: disallowed */ | 2840 | /* Builtin in pipe: disallowed */ |
2841 | /* TODO: allow "exec"? */ | 2841 | /* TODO: allow "exec"? */ |
2842 | prs(bltin_name); | 2842 | prs(bltin_name); |
2843 | err(": cannot run builtin as part of pipe"); | 2843 | err(": can't run builtin as part of pipe"); |
2844 | if (forked) | 2844 | if (forked) |
2845 | _exit(-1); | 2845 | _exit(-1); |
2846 | return -1; | 2846 | return -1; |
@@ -2955,7 +2955,7 @@ static int iosetup(struct ioword *iop, int pipein, int pipeout) | |||
2955 | 2955 | ||
2956 | if (u < 0) { | 2956 | if (u < 0) { |
2957 | prs(cp); | 2957 | prs(cp); |
2958 | prs(": cannot "); | 2958 | prs(": can't "); |
2959 | warn(msg); | 2959 | warn(msg); |
2960 | return 1; | 2960 | return 1; |
2961 | } | 2961 | } |
@@ -3110,7 +3110,7 @@ static const char *rexecve(char *c, char **v, char **envp) | |||
3110 | return "not found"; | 3110 | return "not found"; |
3111 | } | 3111 | } |
3112 | exstat = 126; /* mimic bash */ | 3112 | exstat = 126; /* mimic bash */ |
3113 | return "cannot execute"; | 3113 | return "can't execute"; |
3114 | } | 3114 | } |
3115 | 3115 | ||
3116 | /* | 3116 | /* |
@@ -3996,7 +3996,7 @@ static int dollar(int quoted) | |||
3996 | switch (c) { | 3996 | switch (c) { |
3997 | case '=': | 3997 | case '=': |
3998 | if (isdigit(*s)) { | 3998 | if (isdigit(*s)) { |
3999 | err("cannot use ${...=...} with $n"); | 3999 | err("can't use ${...=...} with $n"); |
4000 | gflg = 1; | 4000 | gflg = 1; |
4001 | break; | 4001 | break; |
4002 | } | 4002 | } |