Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
hi there,
What is the EXINIT variable use for??
and what about the
set -o noclobber and set -o ignoreef??thank you so much!!!

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 EXINITthen each time you invoke vi, those options will get automatically set.
set -o noclobber
print testing > myfile
ksh: myfile: file already existsAs 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

![]() |
![]() |
![]() |

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