Bug 987975 - symlink in working directory path inconsistent behaviour
Summary: symlink in working directory path inconsistent behaviour
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ondrej Oprala
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-24 13:43 UTC by Ales Ledvinka
Modified: 2016-09-20 04:34 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-10 09:27:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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'.


Note You need to log in before you can comment on or make changes to this bug.