Import vendor patch to fix postcmd regression in tcsh-6.15.00.

This commit is contained in:
mp 2007-04-03 15:51:53 +00:00
parent a40980339b
commit 637c0444dc

View File

@ -851,7 +851,8 @@ getsub(struct wordent *en)
return (en);
}
slhs.len = 0;
Strbuf_append(&slhs, lhsb.s);
if (lhsb.s != NULL && lhsb.len != 0)
Strbuf_append(&slhs, lhsb.s);
Strbuf_terminate(&slhs);
if (exclc)
en = dosub(sc, en, global);