csh fix.
utzoo!watmath!decvax!harpo!eagle!mhtsa!ihnss!ihuxp!grg
utzoo!watmath!decvax!harpo!eagle!mhtsa!ihnss!ihuxp!grg
Tue Jun 29 12:45:22 AEST 1982
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
More information about the Net.bugs
mailing list