summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/msh.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/msh.c b/shell/msh.c
index e43cb18..c88308f 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -4860,9 +4860,12 @@ static int qstrchar(struct ioarg *ap)
{
int c;
- if (ap->aword == NULL) || (c = *ap->aword++) == 0)
+ if (ap->aword == NULL)
return 0;
- return c | QUOTE;
+ c = *ap->aword++;
+ if (c)
+ c |= QUOTE;
+ return c;
}
/*