Path: utzoo!dciem!nrcaer!scs!spl1!laidbak!att!osu-cis!tut.cis.ohio-state.edu!husc6!ddl From: ddl@husc6.harvard.edu (Dan Lanciani) Newsgroups: comp.os.minix Subject: sh bug Message-ID: <4705@husc6.harvard.edu> Date: 4 Jun 88 03:35:33 GMT Article-I.D.: husc6.4705 Organization: Harvard University, Cambridge MA Lines: 25 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 != '\"')