test(win32): check paths in git bash on Windows#1212
Merged
Conversation
044e2ce to
1abefd2
Compare
1abefd2 to
15a1519
Compare
Collaborator
Author
|
Hey @Schweinepriester, I need your assistance to reproduce the case. test('should create a dir via mkdir', async () => {
const temp = tmpdir()
const _$ = $({ verbose: true, cwd: temp })
console.log('shell:', $.shell)
await _$`which bash`
await _$`bash --version`
await _$`mkdir -p ${path.join(temp, 'AA-zx-test')}`
await _$`mkdir -p BB-zx-test`
const { stdout } = await _$`ls -l | grep zx-test`
assert.match(stdout, /AA-zx-test/)
assert.match(stdout, /BB-zx-test/)
}) |
antonmedv
approved these changes
May 11, 2025
Contributor
|
thank you for looking into it! so it would appear to work oO thinking I'm going insane I doubled checked though: oO |
Contributor
|
tried checking permissions now: they are the same… |
Collaborator
Author
|
Ok, I'll merge this as a test suite improvement for now. We'll try to dig up the rest later. |
This was referenced Jul 17, 2025
nizar0x1f
added a commit
to nizar0x1f/zx
that referenced
this pull request
Jul 17, 2025
Converts Windows paths to POSIX format when running in Git Bash on Windows.
Fixes silent failures of commands like `mkdir -p ${path.join(__dirname, 'dir')}`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
relates #1211