ddl@husc6.harvard.edu (Dan Lanciani) (06/04/88)
The shell doesn't get quoting inside back-quote constructions right; back-slashes are lost. They are also lost from the output of the command run in the back-quote construction. Both problems can be fixed in the same place: *** /tmp/sh5.c.orig Fri Jun 3 23:32:19 1988 --- sh5.c Tue May 31 17:27:01 1988 *************** *** 26,32 **** return(c); } c = readc(); ! if (ec != '\'') { if(c == '\\') { c = readc(); if (c == '\n' && ec != '\"') --- 26,32 ---- return(c); } c = readc(); ! if (ec != '\'' && ec != '`' && e.iop->task != XGRAVE) { if(c == '\\') { c = readc(); if (c == '\n' && ec != '\"')