Opened 5 years ago

Closed 5 years ago

Last modified 5 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:
Has a Patch: no 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 5 years ago.
terminal screen capture png file

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by alphaseinor

terminal screen capture png file

comment:1 Changed 5 years ago by pulkomandy

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 Changed 5 years ago by anevilyak

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 Changed 5 years ago by pulkomandy

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