Computing.Net > Forums > Unix > EXINIT variable

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

EXINIT variable

Reply to Message Icon

Name: may
Date: January 12, 2003 at 03:05:03 Pacific
OS: Sun Solaris
CPU/Ram: p4/1G
Comment:

hi there,

What is the EXINIT variable use for??

and what about the
set -o noclobber and set -o ignoreef??

thank you so much!!!



Sponsored Link
Ads by Google

Response Number 1
Name: James Boothe
Date: January 12, 2003 at 08:56:55 Pacific
Reply:

If EXINIT is set (and enabled for export), vi will process it at startup. For example, if you prefer ignore case and numbering to be set most of the time, your login .profile could contain:

EXINIT="set ic nu"
export EXINIT

then each time you invoke vi, those options will get automatically set.

set -o noclobber
print testing > myfile
ksh: myfile: file already exists

As shown by the above, when the noclobber option is set, output redirection will not overwrite an existing file.

The last option you ask about is spelled ignoreeof. When this shell option is set, it will not allow an interactive shell to exit when you type the end-of-file character. This is usually Ctrl-D, but can be mapped to whatever. On my server, typing the end-of-file character with this option set produces:

Use 'exit' to logout


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: EXINIT variable

Variables in Shell SCripting www.computing.net/answers/unix/variables-in-shell-scripting/6020.html

export variables www.computing.net/answers/unix/export-variables/4268.html

variables www.computing.net/answers/unix/variables/3926.html