Path: utzoo!attcan!uunet!cs.utexas.edu!know!sdd.hp.com!ucsd!rutgers!cmcl2!phri!marob!slhisc!sky!jerry From: jerry@slhisc.uucp (Jerry Liebelson) Newsgroups: comp.unix.shell Subject: Csh question: Doing cd .. from a symbolically linked directory Message-ID: Date: 24 Oct 90 15:01:01 GMT Sender: jerry@slhisc.uucp (Jerry Liebelson) Distribution: comp.unix.shell Organization: Shearson Lehman Brothers, Inc. (ISC) Lines: 34 *SEND REPLIES TO: uunet!slcpi!slhisc!jerry Organization: Shearson Lehman Brothers, Inc. ------------------------------------------------------------------------------ SITUATION: 1. cd /tmp 2. mkdir -p a/b 3. ln -s a/b c PROBLEM: 1. cd /tmp/c 2. pwd (output is "/tmp/c") 3. cd .. 4. pwd (output is "/tmp/a", not "/tmp" ! ) QUESTION: Is there a way to set things in the csh such that when I do the cd .. from /tmp/c, I will end up in /tmp and not in /tmp/a? I tried setting the hardpaths variable but that just changes the output of pwd when I am in /tmp/c (displaying "/tmp/a/b" instead of "/tmp/c"). COMMENT: I know the behavior I want can be achieved in the Korn Shell. But I am stuck with the Csh for now. -- Jerry Liebelson uunet!slcpi!slhisc!jerry Distributed Infrastructure (212) 341-3166 FAX: (212) 528-0101 Shearson Lehman Brothers, Inc. -- Jerry Liebelson uunet!slcpi!slhisc!jerry Distributed Infrastructure (212) 341-3166 FAX: (212) 528-0101 Shearson Lehman Brothers, Inc.