473,748 Members | 10,569 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"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 2200
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
455
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) on Linux with Bash and according to the documentation,
2
1315
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 image, it does not work?????? What am I doing wrong Any help is appreciated
6
1457
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 menu items renamed just fine. What might I be doing wrong? TIA, Larry Woods
2
2134
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 Edit, Delte, or Update functionality in my GridView. I just need to display the data thats all. I am using ASP.NET 2.0 and VS 2005. some one could please give me hand here?
0
962
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 change the text, add a document, etc. Besides using a full blow starter kit/platform, does anyone know of some add-on components that I could just add to my existing page(s)? Thanks.
1
2906
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 recSet2.Fields("DateDifference") = UntilCompletion recSet2.Update As was suggested by a helpful friend at TheScripts
1
2289
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 combine the "Edit" and "Display" funtions into this page. (It means if user want to edit the customer information, this page would provided editing page to the user; If the user want to display the customer information, this page would providev the...
1
1573
by: komaladevi | last post by:
can any one help me in writing acode -"how to edit "edit item template" dynamically""
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9374
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9325
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.