DEC ucode cc politely reminds me this is not a good way of doing stuff, 10x
This commit is contained in:
parent
566f882d83
commit
4aba1d69b5
7
lex.c
7
lex.c
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.104 2010/01/25 16:12:56 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.105 2010/01/28 20:52:08 tg Exp $");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* states while lexing word
|
* states while lexing word
|
||||||
@ -542,11 +542,12 @@ yylex(int cf)
|
|||||||
else {
|
else {
|
||||||
c = utf_wctomb(ts, c2 - 0x100);
|
c = utf_wctomb(ts, c2 - 0x100);
|
||||||
ts[c] = 0;
|
ts[c] = 0;
|
||||||
for (c = 0; ts[c]; ++c)
|
for (c = 0; ts[c]; ++c) {
|
||||||
*wp++ = QCHAR, \
|
*wp++ = QCHAR;
|
||||||
*wp++ = ts[c];
|
*wp++ = ts[c];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (!statep->ls_sequote.got_NUL)
|
} else if (!statep->ls_sequote.got_NUL)
|
||||||
*wp++ = QCHAR, *wp++ = c;
|
*wp++ = QCHAR, *wp++ = c;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user