3 ms·
I write plenty of shell scripts where appropriate, but my main point was really that you don't need to couple your interactive environment to your scripting env
by kstrauser 8y ago
I write plenty of shell scripts where appropriate, but my main point was really that you don't need to couple your interactive environment to your scripting environment. Sure, write your shell scripts in bash. That doesn't mean you need to use that as your regular shell, though.
- Myrmornis 8y agoIt's true. My thinking was that there are some techniques that I use in both interactive shell usage and in scripts, and that using the same language for both would teach me them better. I'm trying to think what the best examples are, having run this experiment on myself for a couple of years now. I think one is process substitution with <() and io redirection stuff like <<<. Also IIRC correctly bash and zsh differ in whether piped commands run in different subshells. Stuff like that; I'd like to just have firmly in my mind for interactive shell and scripting and not have to know two similar languages. But I miss tab completion for aliases.