Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!psuvax1!rutgers!cscnj!pat From: pat@cscnj (Patrick Hester) Newsgroups: comp.sys.next Subject: alias/escapes (was Re: Attaching sounds to actions?) Message-ID: <1991Jan24.193039.9240@cscnj> Date: 24 Jan 91 19:30:39 GMT Distribution: na Organization: Computer Sciences Corporation, NJ (CSD) Lines: 27 In article <992@kaos.MATH.UCLA.EDU>, barry@pico.math.ucla.edu (Barry Merriman) writes: > Sounds attached to commands > --------------------------- > > too attach foobar.snd to the command foobar, make the following alias > in your .cshrc file: > > alias foobar 'playsnd /me/foobar.snd ; /bin/foobar' > > NOTE: you must put the full path name of foobar (here assumed /bin/foobar) > in the alias to avoid a self-referential alias. You could also prevent aliasing by escaping any character in the name with a back slant. Like foo\bar will get you the executable via your path instead of the alias. alias foobar 'playsnd /me/foobar.snd ; fo\obar' Also, if you are at a shell prompt and want to make sure you get the executable instead of the alias. BTW, this is only necessary in csh. ksh understands what you want. -- 8=====8 =8(/\/) --<-@ 8=====8 (201)-805-2325 rutgers!cscnj!pat If we didn't arm guys like Saddam, we wouldn't have to wage war on them.