bash behaves different on symlinks than the GNU tools
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gnu Bash |
Invalid
|
Undecided
|
Unassigned | ||
bash (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: bash
as example I have 'ln -s /tmp $HOME/tmp'
when I now cd into tmp/ I correcty get to the /tmp folder, cd .. gets me back to ~. So far so good.
now... when I'm in tmp and try to work with bash auto-completion or pwd I can't use cp, rm, mv, file, stat, etc... anymore
when I do 'cp ../.bashr<tab>' it gets auto-completed to 'cp ../.bashrc'
but when I actually run the command 'cp ../.bashrc .' I get
cp: cannot stat `../.bashrc': No such file or directory
you easily find out why that happens with 'ls ..' which shows
bin cdrom etc initrd.img lib mnt proc sbin srv tmp var vmlinuz.old
boot dev home initrd.img.old media opt root selinux sys usr vmlinuz
and finally pwd shows that bash and the GNU tools think differently:
$ pwd
/home/yofel/tmp
$ /bin/pwd
/tmp
ProblemType: Bug
Architecture: i386
Date: Wed Jan 6 12:33:52 2010
DistroRelease: Ubuntu 10.04
Package: bash 4.1-1ubuntu1
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: bash
Tags: lucid
Uname: Linux 2.6.32-9-generic i686
Changed in bash (Ubuntu): | |
status: | New → Confirmed |
Changed in gnubash: | |
status: | Unknown → New |
http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 538891
is a similiar report.