better fix

This commit is contained in:
tg
2014-10-19 21:39:37 +00:00
parent 67d8c69353
commit cf2609f3fa
2 changed files with 8 additions and 4 deletions

9
eval.c
View File

@@ -23,7 +23,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.156 2014/10/19 21:04:47 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.157 2014/10/19 21:39:37 tg Exp $");
/*
* string expansion
@@ -664,7 +664,11 @@ expand(
f |= DOTEMP;
/* FALLTHROUGH */
default:
word = quote || (!*x.str && (f & DOASNFIELD)) ? IFS_WORD : IFS_IWS;
/* '-' '+' '?' */
if (quote)
word = IFS_WORD;
else if (dp == Xstring(ds, dp))
word = IFS_IWS;
/* Enable tilde expansion */
tilde_ok = 1;
f |= DOTILDE;
@@ -764,6 +768,7 @@ expand(
doblank++;
st = st->prev;
continue;
/* default: '-' '+' */
}
st = st->prev;
type = XBASE;