Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!spool.mu.edu!cs.umn.edu!msi.umn.edu!math.fu-berlin.de!unido!aega84!tmcsys!lothar From: lothar@tmcsys.UUCP (L. Hirschbiegel) Newsgroups: comp.unix.questions Subject: Re: using cd command in a file Message-ID: <380@tmcsys.UUCP> Date: 20 May 91 22:10:28 GMT Article-I.D.: tmcsys.380 References: <1991May20.155136.25162@ux1.cso.uiuc.edu> Reply-To: lothar@tmcsys.UUCP (L. Hirschbiegel) Organization: Private Site Lines: 21 In article <1991May20.155136.25162@ux1.cso.uiuc.edu> ceblair@ux1.cso.uiuc.edu (Charles Blair) writes: > > I would like to get to a directory /me/A/B/C/D by just typing j. I tried >creating a file j with cd /me/etc in it, then chmod +x j. It didn't work. Sure it worked. In the subshell you were starting, which is obviously NOT what you wanted ... (hint, hint:-) Folks, isn't this a classic FAQ? Is there a FAQ for this newsgroup? >Thanks in advance. I'm sure I'm overlooking something well-known. You're right. ;-) L. Hirschbiegel -- ----------------------------------------------- L. Hirschbiegel, AEG - A84, Frankfurt (Germany) email: unido!aega84!lh tel: -49-69-66414316 -----------------------------------------------