I'm trying to set my $EDITOR variable to be emacs with no window, so the command to call it would be
emacs -nw. However if I set it like this:
export EDITOR="/Applications/Emacs.app/Contents/MacOS/Emacs -nw"
I get the following error
zsh: no such file or directory: /Applications/Emacs.app/Contents/MacOS/Emacs -n