#10892 closed bug (invalid)
Unexpected Behavior in Terminal using cd with symlinks
Reported by: | alphaseinor | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta1 |
Component: | Applications/Command Line Tools | Version: | R1/Development |
Keywords: | terminal pwd | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
Tested on haiku-nightly-hrev47259-x86gcc2hybrid-vmware
boot system New terminal cd ~ cd Desktop cd Home cd Desktop cd Home displays as ~/Desktop/Home/Desktop/Home>
you can keep looping with the home symlink, expected behavior would not display symlink as a directory Should be displayed as ~>
Also shows looped path in command line app PWD, so this is not isolated to the CD command
Attachments (1)
Change History (4)
by , 11 years ago
Attachment: | haiku terminal bug report.png added |
---|
comment:1 by , 11 years ago
I don't think this is unexpected. It works the same on Linux. Otherwise you would get confused even more:
cd Desktop/home/Desktop cd ../../.. # I should be back to where I started now.
comment:2 by , 11 years ago
Component: | File Systems/BFS → Applications/Command Line Tools |
---|---|
Resolution: | → invalid |
Status: | new → closed |
That's standard bash behavior, and is identical on other platforms. Doing otherwise would be potentially problematic for things like scripts anyways.
comment:3 by , 10 years ago
Milestone: | R1/alpha5 → R1/beta1 |
---|
terminal screen capture png file