Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!rpi!tale From: tale@cs.rpi.edu (David C Lawrence) Newsgroups: comp.unix.questions Subject: Re: AWK/shell quoting Message-ID: <50M&^@rpi.edu> Date: 11 Jan 90 01:47:51 GMT References: <487@longway.TIC.COM> <166@omaha1.UUCP> <18067@umn-cs.CS.UMN.EDU> <6954@lindy.Stanford.EDU> <7277@cbnewsh.ATT.COM> Organization: Rensselaer Polytechnic Institute, Troy NY Lines: 16 In article <7277@cbnewsh.ATT.COM> ijk@cbnewsh.ATT.COM (ihor.j.kinal) writes: > Why not this: > awk "BEGIN { print \"'\" } " > > Yes, I've tried it, and it does work [and it's simpler than the other > suggestions]. For this particular case it is just fine but for most awk expressions, probably including the one from which this particular question was derived, you want to put the programme specification in single quotes and not double quotes so that $ environment variable interpretation is not done. Dave -- (setq mail '("tale@cs.rpi.edu" "tale@ai.mit.edu" "tale@rpitsmts.bitnet"))