Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#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)

haiku terminal bug report.png (29.3 KB ) - added by alphaseinor 11 years ago.
terminal screen capture png file

Download all attachments as: .zip

Change History (4)

by alphaseinor, 11 years ago

terminal screen capture png file

comment:1 by pulkomandy, 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 anevilyak, 11 years ago

Component: File Systems/BFSApplications/Command Line Tools
Resolution: invalid
Status: newclosed

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 pulkomandy, 10 years ago

Milestone: R1/alpha5R1/beta1
Note: See TracTickets for help on using tickets.