I've tried a few console applications like
joe as a
git editor, and none of them seem to have any problems with being invoked "indirectly" like this (I don't know the actual term for starting an editor as a subprocess and then giving it control).
jed, uniquely among editors I have tried, hangs forever with the message
loading /usr/local/Cellar/jed/0.99-19/jed/lib/emacs.sl when it is launched indirectly via
git commit or
ack <search term> --pager='jed'. I've checked the file and it's there, it was installed as part of the
jed formula on Homebrew on OS X.
I've tried running
git commit and
ack ... --pager='jed' and such under
zsh and both exhibit the same behavior.
I'm trying to get an understanding of the problem so I can configure my terminal/shell differently or, failing that, file a bug report. When an editor is launched from another program and takes control of the terminal, what exactly is happening? Since one of several pieces of software could be responsible for this strange behavior, how would I go about determining which component is behaving in a nonstandard way?