Skip to content

cd -P -L - #11909

Merged
zanchey merged 5 commits into
fish-shell:masterfrom
asukaminato0721:cd-P
Jun 2, 2026
Merged

cd -P -L#11909
zanchey merged 5 commits into
fish-shell:masterfrom
asukaminato0721:cd-P

Conversation

@asukaminato0721

@asukaminato0721 asukaminato0721 commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

Description

Talk about your changes here.

Fixes issue #7206

TODOs:

  • Changes to fish usage are reflected in user documentation/manpages.
  • Tests have been added for regressions fixed
  • User-visible changes noted in CHANGELOG.rst

@asukaminato0721
asukaminato0721 marked this pull request as ready for review October 7, 2025 19:55
zanchey added a commit to asukaminato0721/fish-shell that referenced this pull request May 29, 2026
@zanchey zanchey self-assigned this May 29, 2026
@zanchey zanchey added this to the fish 4.8 milestone May 29, 2026
@zanchey

zanchey commented May 29, 2026

Copy link
Copy Markdown
Member

Sorry this has taken so long to review. I've updated it for the current codebase, and fixed the highlighting of the new arguments.

One thing I'm not sure about is the long option names. "Physical" is the term other shells use in the documentation, although I don't think it's a particularly good term - there's nothing physical about the file path! "Logical" matches realpath(1), but it means something different there. What about copying cp(1) with --dereference for -L and --no-dereference for -P?

zanchey added a commit to asukaminato0721/fish-shell that referenced this pull request May 29, 2026
@asukaminato0721

Copy link
Copy Markdown
Contributor Author

Sorry this has taken so long to review. I've updated it for the current codebase, and fixed the highlighting of the new arguments.

One thing I'm not sure about is the long option names. "Physical" is the term other shells use in the documentation, although I don't think it's a particularly good term - there's nothing physical about the file path! "Logical" matches realpath(1), but it means something different there. What about copying cp(1) with --dereference for -L and --no-dereference for -P?

I agree.

@zanchey
zanchey merged commit 7304fdf into fish-shell:master Jun 2, 2026
14 checks passed
@zanchey zanchey linked an issue Jun 2, 2026 that may be closed by this pull request
@asukaminato0721
asukaminato0721 deleted the cd-P branch June 2, 2026 05:57
@thaJeztah

Copy link
Copy Markdown

Thank you both! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement cd -P, cd -L

3 participants