Documentation on type path doesn't match behaviour
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 48/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- documentation
Research direction
Start with the linked Nushell Type Path documentation and compare its example with the behavior reported for Nushell 0.112.2. Verify the current behavior before editing; done means the documentation accurately describes how path and string arguments are handled.
Written by the indexing model from the issue text.
Description
String won't be expanded into a fully pathname when passed as an arguments with type of path
Document
Doc's here Nushell Type Path
def show_difference [
p: path
s: string
] {
print $"The path is expanded: ($p)"
print $"The string is not: ($s)"
}
# Results
cd ~/testing
show_difference . .
# => The path is expanded: /home/username/testing
# => The string is not: .
Actually
show_difference . .
# => The path is expanded: .
# => The string is not: .
nu --version
# => 0.112.2
You wouldn't be surprised. Code changes fast around here. Just a reminder
I like nushell, thanks for all works of yours
- Dominant language
- TypeScript
- Stars
- 258
- Forks
- 561
- Avg merge
- 3h 20m
- Merged PRs (30d)
- 15
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nushell/nushell.github.io
-
Difficulty 1/5 1-3 hours Newbie friendliness 68/100
nushell/nushell.github.io#2081 · 3 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
nushell/nushell.github.io#767 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
nushell/nushell.github.io#2232 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
nushell/nushell.github.io#2209 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
nushell/nushell.github.io#2194 ·
All issues in nushell/nushell.github.io
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug v2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
modelcontextprotocol/inspector#2458 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
carbon-design-system/ibm-products#9907 ·