-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
interp: support pwd flags like -P #724
Comments
Ah, that's sort-of-expected given that we don't support any pwd flags right now. See: Lines 186 to 187 in ec61336
I think it should be doable with https://pkg.go.dev/path/filepath#EvalSymlinks and a couple of tests, if you're up for sending a PR. |
I'm a Go-newbie but I can give it the old college try in the coming days. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use this repo indirectly through go-task and noticed an unexpected result when executing the command
pwd -P
. The issue is outlined in go-task#533.In essence, when executed from a symlinked directory,
pwd -P
outputs the symlink and not the actual physical location on disk.Example:
The text was updated successfully, but these errors were encountered: