Bug 222212

Summary: csh/tcsh chdir into symlink does not honor logical path
Product: Base System Reporter: Chris Bradfield <cjb>
Component: binAssignee: freebsd-bugs mailing list <bugs>
Status: New ---    
Severity: Affects Many People    
Priority: ---    
Version: 11.1-STABLE   
Hardware: Any   
OS: Any   

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.