-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
handle wildcards on Windows CMD #309
Comments
If I recall correctly, wildcard expansion isn't a part of the Windows CMD shell. I believe it's left up to the program to handle that itself. @sharkdp Any ideas on whether this feature should be added, and if so, how to avoid breaking compatibility with other shells (e.g. |
@eth-p is correct. As I said in my comment here, I don't have any intention to support bat $(ls *.pl) If we want to support this natively, we could think about using this crate. |
@VladimirAlexiev Any update on this? |
@sharkdp I'm not a linux or cygwin programmer, but most cygwin programs support wildcard expansion, so I guess that's easy to do on cygwin. I don't think each linux program was individually ported to cygwin. Eg here's
|
Why are you switching the discussion to Cygwin now? Cygwin (I believe) uses bash as a shell which will do a proper wildcard expansion. My guess would be that |
Cygwin is not related to bash. Cygwin is a set of libraries for easy porting of unix programs on windows. |
So you are calling "cygwin programs" from CMD? In this case, I guess there are special versions which are built for cygwin because CMD definitely doesn't do any wildcard expansion. As I said above, I think there is a really easy way to fix this by using the wild crate. I'm going to turn this into a feature request. |
Windows does not support wildcard expansion in cmd, this adds 'wild' crate that handles everything transparently, so wildcards work everywhere. Fixes sharkdp#309
Windows does not support wildcard expansion in cmd, this adds 'wild' crate that handles everything transparently, so wildcards work everywhere. Fixes sharkdp#309
Released in v0.8.0. @VladimirAlexiev Could you please test this? |
When I try this from Windows CMD:
The same error if I give a path. So it seems to me it doesn't handle the wildcard at all.
The text was updated successfully, but these errors were encountered: