atg / chocolat-public

Public bug tracker for the private chocolat project
http://chocolatapp.com
180 stars 4 forks source link

choc command chokes when run from a shell script #715

Open gfontenot opened 12 years ago

gfontenot commented 12 years ago

I've got a script pulled from Holman's dotfiles to allow me to sub out my editor's terminal command without having to learn the new command. In my .zshrc, I'm doing export EDITOR=choc. Then, I have this script (named e) in my bin

if test "$1" == ""
then
  $($EDITOR .)
else
  $($EDITOR $1)
fi

Works fine with mate and bbedit, and just running choc . or choc foo.txt works fine. But if I run e or e foo.txt, chocolat opens the correct file, or directory, but the command hangs in terminal, until I terminate it myself.

locks commented 10 years ago

Does this still apply?