-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fails to write files that are relative symlinks that don't resolve from cwd #10732
Comments
note that using a non-.. symlink from cwd (i.e.
it seems that it tries reading the |
that's a more accurate title since indeed it's just a cwd issue and not .. $ mkdir -p a/b
$ echo 123 > a/b/c
$ ln -s b/c a/x
$ e a/x # doesn't work |
Maybe #10728 fixes this? |
No that's unrelated, you will need to check if the path returned by readlink is relative and if it is join it on the parent directory of the destination path |
thank you! |
Summary
probably since 6d363a9 but i didn't bisect (i remember updating around those commits and just didn't report it until now)
Reproduction Steps
I tried this:
I expected this to happen:
it can write to the file at symlink target fine.
Instead, this happened:
No such file or directory (os error 2)
Helix log
-vv --log /tmp/x.log
Platform
Linux
Terminal Emulator
foot 1.1.2
Installation Method
source
Helix Version
24.03-171-g00e9e5ea
The text was updated successfully, but these errors were encountered: