Ok, so I can write a shell script with
zsh in mind etc. And I can put a hashbang at the top of the file like so:
which will tell the kernel which interpreter to use to execute the file.
However, I just realized, I don't know how to tell the machine which interpreter to use at the command line.
e.g., if I write:
$ foo bar baz
at the command line, how do I know what interpreter is being used to interpret that command? How can I tell the computer to use a particular interpreter?
Hopefully the question is clear.