[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: symlinks to directories and ..

From: Andreas Schwab
Subject: Re: symlinks to directories and ..
Date: Tue, 18 Jun 2002 11:55:39 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.3.50 (ia64-suse-linux)

address@hidden (Peter Werner) writes:

|>         its my understanding that when a symlink to a directory is followed,
|> the
|>         parent directory of the new CWD will be the real parent directory,
|> not the
|>         directory containing the link.
|>         it is also my understanding that many shells will hide this from the
|> user
|>         making the parent directory appear to be the directory containing
|> the symlink.
|>         bash seems to be doing this, and is causing confusion when '..' is
|> used.
|>         after following a directory symlink, 'ls ..' will display the
|> contents of the
|>         real parent dir, but 'cd ..' will place you in the directory
|> containg the symlink

Use "set -P" (or "set -o physical") to let bash always use the physical
layout of the file system.


Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 N├╝rnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]