version 1.87, 2009/07/15 15:53:57 |
version 1.88, 2009/07/16 12:34:06 |
Line 495 term_pescape(struct termp *p, const char **word) |
|
Line 495 term_pescape(struct termp *p, const char **word) |
|
void |
void |
term_word(struct termp *p, const char *word) |
term_word(struct termp *p, const char *word) |
{ |
{ |
|
const char *sv; |
|
|
if (term_isclosedelim(word)) |
if (term_isclosedelim(word)) |
if ( ! (TERMP_IGNDELIM & p->flags)) |
if ( ! (TERMP_IGNDELIM & p->flags)) |
Line 511 term_word(struct termp *p, const char *word) |
|
Line 512 term_word(struct termp *p, const char *word) |
|
* before the word. |
* before the word. |
*/ |
*/ |
|
|
for ( ; *word; word++) |
for (sv = word; *word; word++) |
if ('\\' != *word) |
if ('\\' != *word) |
term_encodea(p, *word); |
term_encodea(p, *word); |
else |
else |
term_pescape(p, &word); |
term_pescape(p, &word); |
|
|
if (term_isopendelim(word)) |
if (term_isopendelim(sv)) |
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
} |
} |
|
|