Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows process launch and glob expansion #6245

Open
rjbou opened this issue Oct 16, 2024 · 0 comments
Open

Windows process launch and glob expansion #6245

rjbou opened this issue Oct 16, 2024 · 0 comments

Comments

@rjbou
Copy link
Collaborator

rjbou commented Oct 16, 2024

If a command contains a glob, the result is not the same on Unix and Windows machines.
Even if i spotted it first on reftest, it hits also opam exec:
On Unix, bash shell

$ ls c* 
config.log  config.status  configure  configure.ac
$ ls 'c*' 
ls: cannot access 'c*': No such file or directory
$ opam exec -- ls c*
config.log  config.status  configure  configure.ac
> opam exec -- ls 'c*'
ls: cannot access 'c*': No such file or directory

On Windows, Cygwin shell

$ ls c*
config.log  config.status  configure  configure.ac

$ ls 'c*'
ls: cannot access 'c*': No such file or directory

$ opam exec -- ls c*
config.log  config.status  configure  configure.ac

$ opam exec -- ls 'c*'
CHANGES  CODE_OF_CONDUCT.md  CONTRIBUTING.md  config.log  config.status  configure  configure.ac

On our Cygwin create process, we use OCaml win_create_process* that perform a glob expansion.

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

No branches or pull requests

1 participant