-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
enhancementrelease notesSomething that is or should be mentioned in the release notesSomething that is or should be mentioned in the release notes
Milestone
Description
If you are symlinking scripts that rely on status -f being resolved to the original source, you will get the wrong file. Is this the correct behaviour of status -f and if so, is there a way to get the real path of the currently executed script?
Reproduction Steps:
mkdir -p /tmp/dir1mkdir -p /tmp/dir2echo 'status -f' > /tmp/dir1/real.fishln -s /tmp/dir1/real.fish /tmp/dir2/link.fish
Expected behavior:
$ fish /tmp/dir1/real.fish
/tmp/dir1/real.fish
$ fish /tmp/dir2/link.fish
/tmp/dir1/real.fish
Observed behavior:
$ fish /tmp/dir1/real.fish
/tmp/dir1/real.fish
$ fish /tmp/dir2/link.fish
/tmp/dir2/link.fish
Fish version: 2.2.0-747-ge395a0e
Operating system: Arch Linux, fish installed through AUR
Terminal or terminal emulator: termite
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementrelease notesSomething that is or should be mentioned in the release notesSomething that is or should be mentioned in the release notes