From: utzoo!watmath!decvax!harpo!eagle!mhtsa!ihnss!ihuxp!grg Newsgroups: net.bugs Title: csh fix. Article-I.D.: ihuxp.170 Posted: Tue Jun 29 12:45:22 1982 Received: Thu Jul 1 00:11:31 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