External editor with parameters not working?



Hello.

I tried the following thing:
1) export EDITOR="emacs -nw"
2) mc
3) (with internal editor disabled) go to some file and press F4

This opens emacs with the file, however it does not open it in
terminal (which should be done with -nw switch) but in new window in
X. (as if it somehow ignored -nw). If I run the following in shell:

$EDITOR file

it opens file as expected. Why does mc not do that?

I tried setting EDITOR to "vim -R" and again when run from mc, it does
not honor -R switch.

I have version 4.8.12 (which comes from Fedora 21 package).

Stevko

I am not subscribed to mailing list (so send replies also to me).


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]