Bug 987975

Summary: symlink in working directory path inconsistent behaviour
Product: [Fedora] Fedora Reporter: Ales Ledvinka <aledvink>
Component: bashAssignee: Ondrej Oprala <ooprala>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: admiller, ooprala, ovasik, rrakus, tsmetana
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-10 09:27:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ales Ledvinka 2013-07-24 13:43:33 UTC
Description of problem:
cd, and "." behave inconsistently when symlink is in the working directory path

Version-Release number of selected component (if applicable):
found @f18
reproduced with rawhide 07/24/13 bash-4.2.45-2.fc18.x86_64 rebuilt for f18

How reproducible:
always

Steps to Reproduce:
[aledvink@dhcp-25-145 rpmbuild]$ cd ~/repo/ipmitool.f
[aledvink@dhcp-25-145 ipmitool.f]$ . ../../rpmbuild/runme
bash: ../../rpmbuild/runme: No such file or directory
[aledvink@dhcp-25-145 ipmitool.f]$ cd ../../rpmbuild
[aledvink@dhcp-25-145 rpmbuild]$ type .
. is a shell builtin
[aledvink@dhcp-25-145 rpmbuild]$ type cd
cd is a shell builtin
[aledvink@dhcp-25-145 rpmbuild]$ set -o
allexport      	off
braceexpand    	on
emacs          	on
errexit        	off
errtrace       	off
functrace      	off
hashall        	on
histexpand     	on
history        	on
ignoreeof      	off
interactive-comments	on
keyword        	off
monitor        	on
noclobber      	off
noexec         	off
noglob         	off
nolog          	off
notify         	off
nounset        	off
onecmd         	off
physical       	off
pipefail       	off
posix          	off
privileged     	off
verbose        	off
vi             	off
xtrace         	off
[aledvink@dhcp-25-145 rpmbuild]$ ls -ld ~/repo
lrwxrwxrwx. 1 aledvink aledvink 8 Jan 26 12:08 /home/aledvink/repo -> /al/repo

Actual results:
error on "." but not on cd

Expected results:
consistent no error

Comment 1 Fedora End Of Life 2013-09-16 14:45:19 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle.
Changing version to '20'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora20

Comment 2 Fedora Admin XMLRPC Client 2013-10-07 11:47:23 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Ondrej Oprala 2014-01-10 09:27:33 UTC
Thanks for the report. This is an expected behaviour of bash in regards to symlinks. The behaviour you specified can be achieved by using 'set -o physical'.