473,386 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

"edit" doesn't use environment variable.

I've seen this question asked a couple times in this forum
but never answered, so I guess my hopes aren't too high,
but:

I'm running
mysql Ver 12.21 Distrib 4.0.14, for pc-linux (i686)
on Linux with Bash and according to the documentation,
edit (\e) Edit command with $EDITOR.


Although my $EDITOR is set to /usr/bin/vim, when I use the
edit or \e command, the editor is started as vi (in my case
it's still vim, but it gets started in vi-compatible mode,
which I don't like).

Is $EDITOR perhaps being sought in mysqld's environment
instead of mysql's? That doesn't seem like the right thing
to do, but if so, is there a workaround (that wouldn't
involve making everybody who uses this server use the same
editor)?

--
Aaron
Jul 20 '05 #1
1 2163
I wrote:
Although my $EDITOR is set to /usr/bin/vim, when I use the
edit or \e command, the editor is started as vi (in my
case it's still vim, but it gets started in vi-compatible
mode, which I don't like).


Oops! I had to wait until my post appeared before I could
reply to it, but I got some local help and this turned out
to have nothing to do with MySQL. Here's what was
happening: In my .bash_profile I was setting my editor:

EDITOR=/usr/bin/vim

but I was forgetting to export it:

export PATH

So I just changed the above line to

export PATH EDITOR

and now everything works as advertised in the MySQL manual.

Sorry for the bother!

--
Aaron
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Aarono Brown | last post by:
I've seen this question asked a couple times in this forum but never answered, so I guess my hopes aren't too high, but: I'm running > mysql Ver 12.21 Distrib 4.0.14, for pc-linux (i686) ...
2
by: Nalaka | last post by:
Hi (I am using visual studio 2005 beta 2) I have a simple asp.net data grid, with a edit (update and cancel) set. When the button mode is link, it works fine. But when the button mode is...
6
by: Larry Woods | last post by:
I am trying to name my submenus (MainMenu control) and they show up in the menu dropdown...like they are O.K., but when I check my controls the names are still "MenuItemX". OTOH, the top-level...
2
by: Learner | last post by:
Hello, I have a GridView control on my webform. I can see the data in my GridView control but I don't see any option to hide or delete the Edit column in the control. I don't have to have any...
0
by: Amil Hanish | last post by:
I want to add some different controls on my web page that have "edit" capabilities. This would be like a portal starter kit module where, if authenticated, the user could click an edit button to...
1
by: Kosmös Pollard | last post by:
Hey guys, I'm rather new to access and can not seem to figure out what is wrong with this code I will post below...but first...it was working perfectly fine before I added this: recSet2.Edit...
1
by: Benny Ng | last post by:
Dear All, Now I met one problem in the development of my one application. I have one ASP.NET page. It's for disply the information of customer. But now I have one new requirement. It's to...
1
by: komaladevi | last post by:
can any one help me in writing acode -"how to edit "edit item template" dynamically""
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.