Bash scripts are ran thorugh bash, not fish…
So if they messed up the shebang, I’d do bash that_script.sh
Bash scripts are ran thorugh bash, not fish…
So if they messed up the shebang, I’d do bash that_script.sh
you can run a shell inside a shell dog! just run bash inside fish to run whatever script (or put it in a file and run it directly with bash my_script.sh)
Eshell: Eshell: The Emacs Shell
More relevant now as Emacs will be shipping with elixir support for the next release ![]()
Even better you can just put a shebang in your script and specify which shell will be launched when you execute it.
oh I had no idea macOS switched again. My last Mac was in Snow Leopard days, and it was already Bash (previous ones were tcsh I believe).
I think it got changed in 2019 ish.
Might be worth posting how you’ve got on with what you’ve switched to here Hubert: Which operating system do you develop on (Poll) - think more and more people want to move away from macOS, particularly in light of all the various snooping/*backdoors being added (*This video explains why it may effect everyone even if you’re not from the UK).
Good memory, it changed with macOS Catalina in 2019.
OS X prior to 10.3 (Panther) did indeed default to tcsh.
I started using a Mac for development professionally with OS X 10.2 (Jaguar), I’m trying to remember if I used tcsh or bash back then. I would have guessed I was using bash if you didn’t bring up the default being tcsh, and I’m not sure I would have known the difference, TBH. I certainly remember using CVS for source control at the time…
I use oh-my-zsh too. I love the git aliases and even made a custom theme to show a “WIP” label when I use the gwip and gunwip aliases, because I use these all the time when switching branches to e.g. review a PR.
This popped up on DT earlier, just posting here in case it interests anyone:
Yash: Yet another shell
Yash, yet another shell, is a POSIX-compliant command line shell written in C99 (ISO/IEC 9899:1999). Yash is intended to be the most POSIX-compliant shell in the world while supporting features for daily interactive and scripting use. Notable features are:
- Global aliases
- Arrays
- Socket redirection, pipeline redirection, and process redirection
- Brace expansion and extended globbing
- Fractional numbers in arithmetic expansion
- Prompt command and command-not-found handler
- Command line completion with predefined completion scripts for more than 100 commands
- Command line prediction based on command history
Another new one: