diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-21 13:46:54 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-21 13:46:54 +0000 |
commit | a53de7f7c2cd3ac46b26642aafb1a573a096a80d (patch) | |
tree | 76b95b7a441628b3495f744bec5d862b5250f562 /shell | |
parent | e1e5174942d4624e3abb8b98fe404afdbb4edad1 (diff) | |
download | busybox-w32-a53de7f7c2cd3ac46b26642aafb1a573a096a80d.tar.gz busybox-w32-a53de7f7c2cd3ac46b26642aafb1a573a096a80d.tar.bz2 busybox-w32-a53de7f7c2cd3ac46b26642aafb1a573a096a80d.zip |
- fix spelling
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 6 | ||||
-rw-r--r-- | shell/hush.c | 4 | ||||
-rw-r--r-- | shell/msh.c | 14 |
3 files changed, 12 insertions, 12 deletions
diff --git a/shell/ash.c b/shell/ash.c index 7a63fcec7..637ba0128 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -3534,7 +3534,7 @@ static void | |||
3534 | xtcsetpgrp(int fd, pid_t pgrp) | 3534 | xtcsetpgrp(int fd, pid_t pgrp) |
3535 | { | 3535 | { |
3536 | if (tcsetpgrp(fd, pgrp)) | 3536 | if (tcsetpgrp(fd, pgrp)) |
3537 | ash_msg_and_raise_error("cannot set tty process group (%m)"); | 3537 | ash_msg_and_raise_error("can't set tty process group (%m)"); |
3538 | } | 3538 | } |
3539 | 3539 | ||
3540 | /* | 3540 | /* |
@@ -4844,9 +4844,9 @@ openredirect(union node *redir) | |||
4844 | 4844 | ||
4845 | return f; | 4845 | return f; |
4846 | ecreate: | 4846 | ecreate: |
4847 | ash_msg_and_raise_error("cannot create %s: %s", fname, errmsg(errno, "nonexistent directory")); | 4847 | ash_msg_and_raise_error("can't create %s: %s", fname, errmsg(errno, "nonexistent directory")); |
4848 | eopen: | 4848 | eopen: |
4849 | ash_msg_and_raise_error("cannot open %s: %s", fname, errmsg(errno, "no such file")); | 4849 | ash_msg_and_raise_error("can't open %s: %s", fname, errmsg(errno, "no such file")); |
4850 | } | 4850 | } |
4851 | 4851 | ||
4852 | /* | 4852 | /* |
diff --git a/shell/hush.c b/shell/hush.c index 47cdf6f02..3dc27d9c2 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -1466,7 +1466,7 @@ static void pseudo_exec_argv(char **ptrs2free, char **argv) | |||
1466 | 1466 | ||
1467 | debug_printf_exec("execing '%s'\n", argv[0]); | 1467 | debug_printf_exec("execing '%s'\n", argv[0]); |
1468 | execvp(argv[0], argv); | 1468 | execvp(argv[0], argv); |
1469 | bb_perror_msg("cannot exec '%s'", argv[0]); | 1469 | bb_perror_msg("can't exec '%s'", argv[0]); |
1470 | _exit(EXIT_FAILURE); | 1470 | _exit(EXIT_FAILURE); |
1471 | } | 1471 | } |
1472 | 1472 | ||
@@ -4425,7 +4425,7 @@ static int builtin_source(char **argv) | |||
4425 | /* XXX search through $PATH is missing */ | 4425 | /* XXX search through $PATH is missing */ |
4426 | input = fopen(argv[1], "r"); | 4426 | input = fopen(argv[1], "r"); |
4427 | if (!input) { | 4427 | if (!input) { |
4428 | bb_error_msg("cannot open '%s'", argv[1]); | 4428 | bb_error_msg("can't open '%s'", argv[1]); |
4429 | return EXIT_FAILURE; | 4429 | return EXIT_FAILURE; |
4430 | } | 4430 | } |
4431 | close_on_exec_on(fileno(input)); | 4431 | close_on_exec_on(fileno(input)); |
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 | } |