Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!brutus.cs.uiuc.edu!apple!vsi1!wyse!mips!smsc.sony.com!dce From: dce@smsc.sony.com (David Elliott) Newsgroups: comp.unix.wizards Subject: Re: Make:defining macros with filenames that have '$' in them Message-ID: <1990Feb23.174537.5490@smsc.sony.com> Date: 23 Feb 90 17:45:37 GMT References: <27177@cup.portal.com> <12219@smoke.BRL.MIL> Reply-To: dce@Sony.COM (David Elliott) Organization: Sony Microsystems Corp. Lines: 25 In article <12219@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes: >In article <27177@cup.portal.com> DeadHead@cup.portal.com (Bruce M Ong) writes: >>I have to include a file with '$' in its name (i.e. abc.$cf) in >>a macro definition in Make. > >Did you try $$ ? Did you? >Why are you guys posting this kind of question here instead of >comp.unix.questions, which was set up expressly for them? While I agree in principle, this isn't a simple question. After all, once Make tries to do anything with the filename, it uses the shell ('$' is in the list of characters that force the use of sh), which will eat the $. So, it may take a wizard to figure out the correct answer (assuming there is a correct answer other than "Don't use $ in filenames"). -- David Elliott dce@smsc.sony.com | ...!{uunet,mips}!sonyusa!dce (408)944-4073 "...it becomes natural, like a third sense." -- Homer Simpson