make the comments match the actual code; bad jaredy@obsd for failing us so

This commit is contained in:
tg 2014-07-29 16:29:11 +00:00
parent 097ed42c83
commit 065b42c86f
1 changed files with 4 additions and 4 deletions

8
eval.c
View File

@ -23,7 +23,7 @@
#include "sh.h" #include "sh.h"
__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.150 2014/06/09 11:16:07 tg Exp $"); __RCSID("$MirOS: src/bin/mksh/eval.c,v 1.151 2014/07/29 16:29:11 tg Exp $");
/* /*
* string expansion * string expansion
@ -897,14 +897,14 @@ expand(
* word | ws nws 0 * word | ws nws 0
* ----------------------------------- * -----------------------------------
* IFS_WORD w/WS w/NWS w * IFS_WORD w/WS w/NWS w
* IFS_WS -/WS w/NWS - * IFS_WS -/WS -/NWS -
* IFS_NWS -/NWS w/NWS w * IFS_NWS -/NWS w/NWS -
* (w means generate a word) * (w means generate a word)
* Note that IFS_NWS/0 generates a word (AT&T ksh * Note that IFS_NWS/0 generates a word (AT&T ksh
* doesn't do this, but POSIX does). * doesn't do this, but POSIX does).
*/ */
if (word == IFS_WORD || if (word == IFS_WORD ||
(!ctype(c, C_IFSWS) && c && word == IFS_NWS)) { (word == IFS_NWS && c && !ctype(c, C_IFSWS))) {
emit_word: emit_word:
*dp++ = '\0'; *dp++ = '\0';
cp = Xclose(ds, dp); cp = Xclose(ds, dp);