Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!motcid!ellis From: ellis@motcid.UUCP (John T Ellis) Newsgroups: comp.unix.questions Subject: Re: escape key Message-ID: <5087@orchid12.UUCP> Date: 7 Nov 90 13:18:35 GMT Reply-To: motcid!ellis@chg.mcd.mot.com (John T Ellis) Organization: Motorola Inc. - Cellular Infrastructure Div., Arlington Heights, IL 60004 Lines: 37 Keywords: In article <5679@alpha.cam.nist.gov> coleman@cam.nist.gov (Sean Sheridan Coleman X5672) writes: [text deleted] > >When I issue the command, I get back the string ^[]l\!*^[\ >not the pwd in the header. > >How do you issue that escape string? Here is what I use in my .cshrc file: alias cd 'cd \!* ; set l = `dirs` ; echo -n "^[]l$l^[\"; unset $l;' It sounds to me as if your system is not interpreting the escape sequence properly. When you enter this, either at the command line or in some script file, do the following: 1. ctrl V 2. escape esc 3. right bracket ] 4. small l l 5. dollar l $l 6. ctrl V 7. backslash \ This should work. If it doesn't, let me know and I'll try and work something else out. Regards. John -- -------------------------------+------------------------------------------------ John T. Ellis 708-632-7857 | Line Printer paper is strongest Motorola Cellular | at the perforations. motcid!ellis@chg.mcd.mot.com |