Glob expansion does not work when the filename pattern contains multiple periods on windows
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript, node.js
- Domain
- cli
Research direction
Reproduce the quoted shx ls command on Windows, then trace glob handling for ls and the other affected commands such as mv, cp, and rm. The work is done when patterns containing multiple periods, such as src/**/*.mixins.scss, expand correctly on Windows without regressing simpler patterns.
Written by the indexing model from the issue text.
Description
Version: 0.3.4
Issue: Running a command like shx ls \"src/**/*.mixins.scss\" will result in ls: no such file or directory: src/**/*.mixins.scss
If the command is instead shx ls \"src/**/*.scss\" then the command works as expected.
This is true for many commands such as mv, cp, rm etc
I tested the glob expansion behavior directly in Git bash, powershell and in a shell in Ubuntu and glob expansion works as expected.
I have not tested the shx behavior in linux.
Let me know if I should structure the command differently.
- Dominant language
- JavaScript
- Stars
- 1.9k
- Forks
- 51
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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 shelljs/shx
-
Windows
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
dependencies
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
low priority sed
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
mv fails silentlyOpen
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
daisy/a11y-meta-viewer#18 ·
-
good first issue status: needs triaging type: bug version: 2.0
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
medusajs/medusa#17094 · 2 comments ·
Maintainers usually reply within 1 day
-
browser: chrome package: @carbon/react package: styles
Difficulty 1/5 Under an hour Newbie friendliness 92/100
carbon-design-system/carbon#23567 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
clerk/javascript#10033 ·
Maintainers usually reply within 1 day
-
bug client p1
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vercel/eve#4173 · 2 comments ·
Maintainers usually reply within 1 day