How do I execute existing bash scripts #3810
Answered
by
kubouch
thesobercoder
asked this question in
Q&A
-
Loving nushell so far. We have quite a number of bash scripts from work that I often need to execute but I have been pulling up the bash shell for that. Is there a way I can do it from the nushell itself? I'm on Windows 10, using Git bash. |
Beta Was this translation helpful? Give feedback.
Answered by
kubouch
Jul 29, 2021
Replies: 1 comment
-
I think there are two options:
This is based on Linux. Not sure if 2. would work on Git bash on Windows, but at least the first one should work. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
thesobercoder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think there are two options:
bash script.bash
#!/usr/bin/env bash
, make sure it's executable:chmod +x script.bash
and then just execute it:./script.bash
.This is based on Linux. Not sure if 2. would work on Git bash on Windows, but at least the first one should work.