On Tue, Sep 22, 2009 at 9:01 AM, Kapil Hari Paranjape <kapil@xxxxxxxxxxx> wrote:
On Tue, 22 Sep 2009, Roshan Mathews wrote:You're right, my sentence wasn't accurate. It's xargs which sets
The issue does seem to be, as Kapil Paranjape pointed out,
that vi has it's stdin set to /dev/null which it doesn't like.
It is not just "vi" the same happens to "emacs -nw" and "nano" which is
why the latter two exit. However, (like many unix commands) "vi"
assumes that you "know what you are doing" and starts up anyway,
whereas "emacs" and "nano" just quit since they "know what you mean".
Ideally, if one wants to use this method then a more appropriateThat is the way you do it with emacs, you start emacs and open your
choice of command is "emacs-client" or whatever it is called
nowadays. This prevents yet another instance of emacs from being
started if one is already running.