Subject: | `adenosine exports` fails in Bash |
This syntax is incorrect for Bash (version 3.2.51):
$ function HEAD() { adenosine HEAD "$@" };
When typed at the command line, the shell prompts for another line of
input. When executed as part of `eval $(adenosine exports)`:
$ eval $(adenosine exports)
bash: syntax error: unexpected end of file
This syntax is correct for Bash and Zsh:
$ function HEAD() { adenosine HEAD "$@"; }
It may also be worth detecting the shell and printing alias definitions
for csh/tcsh (and really, aliases would work fine for bash/zsh, too).