Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!clyde!cuae2!ihnp4!inuxc!pur-ee!uiucdcs!snail!carroll From: carroll@snail.CS.UIUC.EDU Newsgroups: net.unix Subject: Re: Korn Shell Question Message-ID: <3800014@snail> Date: Fri, 31-Oct-86 12:58:00 EST Article-I.D.: snail.3800014 Posted: Fri Oct 31 12:58:00 1986 Date-Received: Mon, 3-Nov-86 21:21:08 EST References: <22300001@ntvax> Lines: 8 Nf-ID: #R:ntvax:22300001:snail:3800014:000:478 Nf-From: snail.CS.UIUC.EDU!carroll Oct 31 11:58:00 1986 Well, that does seem to work. I remember it failing for csh, but I guess that's because you have to use `pwd` instead of a variable. For the bourne shell, you can do the same thing, except in your .profile instead of .kshrc, and use change_dir() instead of function change_dir. Unfortunately, that means that it won't work for any forked shells (such as out of notesfiles or whatever). Also, you have to use `pwd` because I don't think that Bourne shell supports the var PWD.