Article View: comp.unix.shell
Article #1607Csh question: Doing cd .. from a symbolically linked directory
From: Jerry Liebelson
Date: Wed, 24 Oct 1990 15:01
Date: Wed, 24 Oct 1990 15:01
34 lines
1653 bytes
1653 bytes
*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.
Technical Details
Message-ID:
<JERRY.90Oct24110101@sky.slhisc.uucp>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!know!sdd.hp.com!ucsd!rutgers!cmcl2!phri!marob!slhisc!sky!jerryShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <JERRY.90Oct24110101@sky.slhisc.uucp> 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