-
Notifications
You must be signed in to change notification settings - Fork 45
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
Executing paths should be supported #65
Comments
@niieani Could you give an example of how to run a command under Windows? Case 1: same directory$ ./foo Case 2: Subdirectory$ path/to/dir/foo # or
$ ./path/to/dir/foo |
@nfischer not sure what's the proper way under Windows, but I've found a workaround - it seems cross-env (https://github.com/kentcdodds/cross-env) makes it possible to run executables in a cross-platform way. Perhaps dissecting that package might point to a solution. |
I think that's really about setting environmental variables. If you only want a cross-platform way to run commands, I think you can use This is all without the shx prefix of course. |
Well yeah, cross-env normally is used for setting environmental variables, but I found the other use to be a cross-platform way to run commands. :) Indeed |
Hmmm interesting. I'll investigate when I boot up my Windows machine. We may also want to consider modifying the PATH to allow for executing binaries installed from local node module (or perhaps as an extension to |
@nfischer any update on this? Looks like this issue is over 6 years old. Maybe it's time to either close this issue as |
This feature will allow to run commands silently, which is impossible to do cross-platform.
|
I'd like a cross-platform way of executing local executables, e.g. under *nix I can currently:
this doesn't work under windows because of the path representation
./
.I was hoping I could run:
But that doesn't seem to be supported.
Thanks! Otherwise awesome job!
The text was updated successfully, but these errors were encountered: