diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-08-14 11:04:58 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-08-14 11:04:58 +0200 |
commit | c97df2939ec82bdc36586897e02416f935e89519 (patch) | |
tree | a70016313aa61431c3f469dcac6b6533587a371f | |
parent | 4bf08542480fe6271692cc9359f9747e9d727a79 (diff) | |
download | busybox-c97df2939ec82bdc36586897e02416f935e89519.tar.gz |
hush: tweak comment, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/hush.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/hush.c b/shell/hush.c index 4b46752a3..881331c5b 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -3162,7 +3162,7 @@ static int o_get_last_ptr(o_string *o, int n) * code for partially-quoted strings. * * Unfortunately, if we want to match bash and ash behavior in all cases, - * the logic can't be see as "shell-syntax argument is first transformed + * the logic can't be "shell-syntax argument is first transformed * to a string, then globbed, and if globbing does not match anything, * it is used verbatim". Here are two examples where it fails: * @@ -3171,14 +3171,14 @@ static int o_get_last_ptr(o_string *o, int n) * The globbing can't be avoided (because of '?' at the end). * The glob pattern is: b\\\*? - IOW, both \ and * are literals * and are glob-escaped. If this does not match, bash/ash print b\*? - * - IOW: they "unbackslash" the pattern. + * - IOW: they "unbackslash" the glob pattern. * Now, look at this: * * v='\\\*'; echo b$v? * - * The glob pattern is the same here: b\\\*? - an unquoted $var expansion + * The glob pattern is the same here: b\\\*? - the unquoted $v expansion * should be used as glob pattern with no changes. However, if glob - * does not match, bash/ash print b\\\*? - NOT THE SAME as 1st example! + * does not match, bash/ash print b\\\*? - NOT THE SAME as first example! * * ash implements this by having an encoded representation of the word * to glob, which IS NOT THE SAME as the glob pattern - it has more data. |