Re: trying to change shebang using vi

From: Date: Tue, 12 Oct 2004 19:44:15 +0000
Subject: Re: trying to change shebang using vi
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14885@lists.php.net to get a copy of this message
Stowe Spivey wrote:
Thanks for this. I can get to the file and see what I need to change. However, after I type "i" to insert in vi, I can not use the delete key. In fact, I can't use the delete key at all. If there another delete that is mapped fifferently for this app? A good tutorial link? Many thanks!
You cannot use the backspace, but you should be able to use the delete key (marked "del", "entf" or something else dependent on the language of your keyboard). By default, vim does not allow you to backspace over something you did not just type. If you type ":set backspace=2" and hit enter before you hit "i", you should be able to use the backspace as you expect. For the rest, of course, follow Greg's instructions below :) hth, Klaus
Okay - "which php" displayed /bin/php. I really appreciate ANY help as I am new to PEAR and a newbie
to
linux also. Stowe
$ vi /usr/local/bin/pear in vi, type "i" and then change /usr/local/bin/php to /bin/php (delete key and typing :) hit the ESC key, and then type ":wq" and hit enter. Now this will work $ pear list Greg
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com


« previous php.pear.general (#14885) next »