home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!sasbge
- From: sasbge@ant.unx.sas.com (Gantt Edmiston)
- Subject: Re: how come : ! out of vi always uses sh instead of $SHELL ???
- Originator: sasbge@ant.unx.sas.com
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <BtLyAp.35r@unx.sas.com>
- Date: Wed, 26 Aug 1992 20:30:25 GMT
- Reply-To: sasbge@ant.unx.sas.com
- References: <fish.714853851@news2.gsfc.nasa.gov>
- Nntp-Posting-Host: ant.unx.sas.com
- Organization: SAS Institute Inc.
- Lines: 30
-
-
- In article, fish@daacdev1.stx.com writes:
- >whenever i :! out of vi it uses /bin/sh instead of $SHELL
- >so all of my aliases are lost, etc and makes it very limited
- >
- >i'm just beginning to see just how powerful vi really is but
- >this one is screwing me up royally
- >
- > thanx,
- > fish
-
- Try using the ":shell" instead of ":!" to escape out to the shell.
-
- Additionally, try: ":set all". This will show you all the values of
- all the "ex" options. Look for the one called "shell=" and see if
- it is set to your favorite shell. If not, you *can* create a .exrc
- file in your $HOME directory and include the line: set shell=/bin/ksh
- or whatever suits your needs. Then, each time you bring up vi, it
- will source the .exrc file and set the options to your preferences.
-
- PS: I don't have the "shell" info in my .exrc file and it gets set
- to /bin/ksh by default. I'm not sure why, but I want it that way
- so I'm not too concerned.
- --
- -----------------------------------------------------------------------------
- Gantt Edmiston - SysAdmin |If you always do what you have always done,
- SAS Institute Inc. |you'll always get what you've always gotten!
- Quality Assurance - V416 +--------------------------------------------
- Cary NC 27513 919-677-8000 x6091| sasbge@ant.unx.sas.com
- -----------------------------------------------------------------------------
-