diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-04-17 16:13:32 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-04-17 16:13:32 +0200 |
commit | 10ad622dc2a9fb6563fab13719ead8baf15ff9e4 (patch) | |
tree | 82312d6f38a517dcc7c0004f78d76c667f5a674b /shell/ash.c | |
parent | d85352b4ff51694cb35b429e4cef53302c9e7076 (diff) | |
download | busybox-w32-10ad622dc2a9fb6563fab13719ead8baf15ff9e4.tar.gz busybox-w32-10ad622dc2a9fb6563fab13719ead8baf15ff9e4.tar.bz2 busybox-w32-10ad622dc2a9fb6563fab13719ead8baf15ff9e4.zip |
Spelling fixes in comments, documentation, tests and examples
By klemens <ka7@github.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/shell/ash.c b/shell/ash.c index e170bec2a..70ee15ed8 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -3849,7 +3849,7 @@ setjobctl(int on) | |||
3849 | } | 3849 | } |
3850 | /* fd is a tty at this point */ | 3850 | /* fd is a tty at this point */ |
3851 | fd = fcntl(fd, F_DUPFD, 10); | 3851 | fd = fcntl(fd, F_DUPFD, 10); |
3852 | if (ofd >= 0) /* if it is "/dev/tty", close. If 0/1/2, dont */ | 3852 | if (ofd >= 0) /* if it is "/dev/tty", close. If 0/1/2, don't */ |
3853 | close(ofd); | 3853 | close(ofd); |
3854 | if (fd < 0) | 3854 | if (fd < 0) |
3855 | goto out; /* F_DUPFD failed */ | 3855 | goto out; /* F_DUPFD failed */ |
@@ -6310,7 +6310,7 @@ static char *evalvar(char *p, int flags, struct strlist *var_str_list); | |||
6310 | * $@ like $* since no splitting will be performed. | 6310 | * $@ like $* since no splitting will be performed. |
6311 | * | 6311 | * |
6312 | * var_str_list (can be NULL) is a list of "VAR=val" strings which take precedence | 6312 | * var_str_list (can be NULL) is a list of "VAR=val" strings which take precedence |
6313 | * over shell varables. Needed for "A=a B=$A; echo $B" case - we use it | 6313 | * over shell variables. Needed for "A=a B=$A; echo $B" case - we use it |
6314 | * for correct expansion of "B=$A" word. | 6314 | * for correct expansion of "B=$A" word. |
6315 | */ | 6315 | */ |
6316 | static void | 6316 | static void |
@@ -6520,8 +6520,8 @@ scanright(char *startp, char *rmesc, char *rmescend, | |||
6520 | if (try2optimize) { | 6520 | if (try2optimize) { |
6521 | /* Maybe we can optimize this: | 6521 | /* Maybe we can optimize this: |
6522 | * if pattern ends with unescaped *, we can avoid checking | 6522 | * if pattern ends with unescaped *, we can avoid checking |
6523 | * shorter strings: if "foo*" doesnt match "raw_value_of_v", | 6523 | * shorter strings: if "foo*" doesn't match "raw_value_of_v", |
6524 | * it wont match truncated "raw_value_of_" strings too. | 6524 | * it won't match truncated "raw_value_of_" strings too. |
6525 | */ | 6525 | */ |
6526 | unsigned plen = strlen(pattern); | 6526 | unsigned plen = strlen(pattern); |
6527 | /* Does it end with "*"? */ | 6527 | /* Does it end with "*"? */ |
@@ -7248,7 +7248,7 @@ expandmeta(struct strlist *str /*, int flag*/) | |||
7248 | // Which means you need to unescape the string, right? Not so fast: | 7248 | // Which means you need to unescape the string, right? Not so fast: |
7249 | // if there _is_ a file named "file\?" (with backslash), it is returned | 7249 | // if there _is_ a file named "file\?" (with backslash), it is returned |
7250 | // as "file\?" too (whichever pattern you used to find it, say, "file*"). | 7250 | // as "file\?" too (whichever pattern you used to find it, say, "file*"). |
7251 | // You DONT KNOW by looking at the result whether you need to unescape it. | 7251 | // You DON'T KNOW by looking at the result whether you need to unescape it. |
7252 | // | 7252 | // |
7253 | // Worse, globbing of "file\?" in a directory with two files, "file?" and "file\?", | 7253 | // Worse, globbing of "file\?" in a directory with two files, "file?" and "file\?", |
7254 | // returns "file\?" - which is WRONG: "file\?" pattern matches "file?" file. | 7254 | // returns "file\?" - which is WRONG: "file\?" pattern matches "file?" file. |
@@ -13088,7 +13088,7 @@ exportcmd(int argc UNUSED_PARAM, char **argv) | |||
13088 | } | 13088 | } |
13089 | flag_off = ~flag_off; | 13089 | flag_off = ~flag_off; |
13090 | 13090 | ||
13091 | /*if (opt_p_not_specified) - bash doesnt check this. Try "export -p NAME" */ | 13091 | /*if (opt_p_not_specified) - bash doesn't check this. Try "export -p NAME" */ |
13092 | { | 13092 | { |
13093 | aptr = argptr; | 13093 | aptr = argptr; |
13094 | name = *aptr; | 13094 | name = *aptr; |