grg (06/29/82)
Enclosed is a fix to csh, for escaped quotes in quoted strings.
Change in sh.lex.c, routine word(), approx. line 180:
if (c == '\\') {
c = getC(0);
if (c == HIST)
c |= QUOTE;
else {
if (c == '\n' && c1 != '`')
c |= QUOTE;
New: else if (c == '"')
New: c |= QUOTE;
New: else if (c == '\'')
New: c |= QUOTE;
New: else
ungetC(c), c = '\\';
}
}
-----------------------------------------------------------------
This makes csh behavior the same as "sh" for items like:
echo "#define name \"string\" "
Greg Guthrie
Bell Labs
Naperville, Ill (312)979-7303