Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why cant I use the $SVN_EDITOR environment variable in cygwin?

Tags:

svn

cygwin

I must be missing something stupid! It works fine when I use the -m option.

$ echo $SVN_EDITOR
emacs

$ svn commit test.py
svn: Commit failed (details to follow):
svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR envirionment variable or using the --message (-m) or --file (-F) options 
svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time configuration option was found
like image 458
charles Avatar asked May 29 '11 17:05

charles


People also ask

Which command you can apply to set up an environment variable?

To set an environment variable, use the command " export varname=value ", which sets the variable and exports it to the global environment (available to other processes). Enclosed the value with double quotes if it contains spaces. To set a local variable, use the command " varname =value " (or " set varname =value ").


2 Answers

Though this is a cygwin question, I would like to state that on windows command line when using svn command line (collabnet), you could use the following

set SVN_EDITOR=notepad.exe

I am stating this hear since it might help windows users and did not find anything else related to this on other SO questions.

like image 69
user_v Avatar answered Nov 16 '22 02:11

user_v


I have never seen a platform where SVN_EDITOR actually works -- it doesn't work on Mac OS X either. Use EDITOR, it should work fine.

like image 35
Ernest Friedman-Hill Avatar answered Nov 16 '22 02:11

Ernest Friedman-Hill