Bug 222212 - csh/tcsh chdir into symlink does not honor logical path
Summary: csh/tcsh chdir into symlink does not honor logical path
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.1-STABLE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-11 05:26 UTC by Chris Bradfield
Modified: 2017-09-11 05:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Bradfield 2017-09-11 05:26:25 UTC
Recent builds of csh/tcsh have a bug where entering a symlink does not honor the logical path. Instead, it adopts the physical path:

% cd /tmp
% ln -s /usr/local .
% cd local
% pwd
/usr/local
% cd ..
% pwd
/usr

Contrast this with sh:
$ cd /tmp
$ cd local
$ pwd
/tmp/local
$ cd ..
$ pwd
/tmp

This behavior started in the last 3-6 months I would guess.