3 ms·
Or just simply: (fish)$ bash -c ./random.sh
by R0flcopt3r 5y ago
Or just simply:
(fish)$ bash -c ./random.sh
- gnubison 5y agoNo need to use -c there: (fish)$ bash random.sh
- AYBABTME 5y agoThat doesn't give you the env vars that the script might have set.
- pxc 5y agoYou can use fenv or bass for that. They run a snippet or script of bash in bash, then import all the environment changes for you https://github.com/oh-my-fish/plugin-foreign-env https://github.com/oh-my-fish/plugin-foreign-env https://github.com/edc/bass https://github.com/edc/bass
- stjohnswarts 5y agocould you explain this? How could the script set env vars before you run it??