Skip to content

Fix path type code demonstration#2199

Open
Kissaki wants to merge 1 commit into
nushell:mainfrom
Kissaki:fix/path
Open

Fix path type code demonstration#2199
Kissaki wants to merge 1 commit into
nushell:mainfrom
Kissaki:fix/path

Conversation

@Kissaki

@Kissaki Kissaki commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

. does not get expanded

tested in current 0.114.0 and reported in #2155 for 0.112.2

Resolves #2155

On Windows ... gets expanded to ..\... I have not tested on Linux, so I leave the ... example as-is.

`.` does not get expanded

tested in current 0.114.0 and reported in nushell#2155 for 0.112.2

Resolves nushell#2155

On Windows `...` gets expanded to `..\..`. I have not tested on Linux, so I leave the `...` example as-is.
@fdncred

fdncred commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

I wonder if it's a bug that the path isn't expanded with . and path

@Juhan280

Copy link
Copy Markdown
Contributor

. not expanded is an intended behavior, nushell used to expand them. But a lot of programs makes a distinction between relative and absolute paths, so the behavior was changed

@fdncred

fdncred commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

According to that PR ~, ., and ..+ are still expanded, which is not the case any longer

@Juhan280

Copy link
Copy Markdown
Contributor

It expands, but keeps the relative paths relative, unless I am reading it wrong

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation on type path doesn't match behaviour

3 participants