Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.6.2.17 $; site uiucdcs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxj!houxm!ihnp4!inuxc!pur-ee!uiucdcs!liberte From: liberte@uiucdcs.UUCP Newsgroups: net.unix Subject: Re: Csh substitution Message-ID: <39300027@uiucdcs.UUCP> Date: Fri, 11-Jan-85 02:48:00 EST Article-I.D.: uiucdcs.39300027 Posted: Fri Jan 11 02:48:00 1985 Date-Received: Sat, 12-Jan-85 05:46:19 EST References: <17300001@uiucdcsp.UUCP> Lines: 21 Nf-ID: #R:uiucdcsp:17300001:uiucdcs:39300027:000:850 Nf-From: uiucdcs!liberte Jan 11 01:48:00 1985 /* Written 2:32 am Jan 10, 1985 by liberte@uiucdcsp in uiucdcs:net.unix */ /* ---------- "Csh substitution" ---------- */ Inside a command substitution, I want to do a variable substitution but not a filename expansion on the variable's value. I cant seem to get one without the other. For example: /* End of text from uiucdcs:net.unix */ Turns out there is a trivially easy solution. Just set noglob before the embedded command is executed to inhibit filename expansion. In this case it would work. But suppose you wanted some combination of filename expansion and no expansion within the same expression. Pretend you couldnt use noglob, just to make it interesting... Some of you may notice a problem using "'"s within "`"s. It seems that the characters after a "'" are forgotten. Dan ihnp4!uiucdcs!liberte liberte@uiucdcs.Uiuc.ARPA