Sponsored Content
Operating Systems HP-UX Set, setenv or export? Confused between three options Post 302996373 by Don Cragun on Tuesday 25th of April 2017 05:16:02 AM
Old 04-25-2017
Quote:
Originally Posted by MadeInGermany
A correction: ksh does not take .kshrc. It takes an environment variable ENV.
You can of course put the following into .profile
Code:
#ksh takes this startup file:
ENV=$HOME/.kshrc; export ENV

If ENV is found in the environment when an interactive ksh is invoked, then parameter expansion, command substitution, and arithmetic substitution are performed on the value of $ENV to generate the pathname of a script that will be executed before the first prompt is issued. If ENV is not found in the environment when an interactive ksh is invoked and there is a file named .kshrc in your login directory, that file will be executed before the first prompt is issued.

Depending on how ksh is configured on your system, it may also look for /etc/ksh/.kshrc. On systems that are configured to use this file, you can skip executing it by setting ENV to a string starting with /./ or ././ (such as /.$HOME/.kshrc to execute only $HOME/.kshrc or /./dev/null to avoid executing either of those files).
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

set, setenv

Well first of all I am a real Unix newbie. I am taking a course on it in University. I kind of understand set and setenv but, I think it si something that I should really understand. So I thought that I would try a forum out and see how good you guys really are. The question: Execute the... (1 Reply)
Discussion started by: w6u6f
1 Replies

2. Shell Programming and Scripting

How do I set permanent setenv !!!

Hello, I just want to know ow I can set permanent pathes or whatever using setenv command. I'm using c shell . regards, me (1 Reply)
Discussion started by: geoquest
1 Replies

3. UNIX for Dummies Questions & Answers

Difference between SET and SETENV

I never undestood exactly what's the difference between the SET and SETENV commands. One sets variables visible to all users and the other (SETENV) only to the specific user environment ? Thanks in advance, BraZil - thE heLL iS HEre :mad: !!! (2 Replies)
Discussion started by: 435 Gavea
2 Replies

4. UNIX for Dummies Questions & Answers

difference between set and export

Hi, can anybody tell me what is the difference between set and export in unix. -Ashish (1 Reply)
Discussion started by: shriashishpatil
1 Replies

5. UNIX for Dummies Questions & Answers

difference between EXPORT and setenv

Hi, Is there any difference between setting an environment variable by EXPORT and by setenv? (3 Replies)
Discussion started by: dexkid
3 Replies

6. Shell Programming and Scripting

use of set, export and typeset

what is the difference in usage of set, export, typeset while declaring a value to a variable can any one help thanks (0 Replies)
Discussion started by: trichyselva
0 Replies

7. UNIX for Dummies Questions & Answers

Why does set also change setenv variables?

I thought that set and setenv was easy enough to understand until I started experimenting. I noticed the same problem in a previous thread, so I will use it as an example. set command gave the following output: argv () cwd /homes/e/ee325328/assignment.2 home /homes/e/ee325328 path ( a... (2 Replies)
Discussion started by: benwj
2 Replies

8. Shell Programming and Scripting

How to check if export DISPLAY is set or not?

Hi All, I use "export DISPLAY=same_host:0.0" to set my export DISPLAY and it is working fine for me.. Problem here is I have developed a script for which i should run export DISPLAY prior to running my script.... so my script should check whether export DISPLAY is set or not.. if... (6 Replies)
Discussion started by: smarty86
6 Replies

9. UNIX for Advanced & Expert Users

Vi set options

Does know where I can find what ALL of the set options do in vi? I can't find it anywhere in vi's man pages or help files. I know about :set all but a lot of the options I have no clue what they do. (3 Replies)
Discussion started by: cokedude
3 Replies

10. Solaris

export vs env vs set commands

Hi I'm trying to understand variable scopes in solaris10. It is said that to display env variables we use 3 commands : - env - set - export What is the difference between them ? thx for help. ---------- Post updated at 11:00 AM ---------- Previous update was at 10:50 AM ---------- ... (2 Replies)
Discussion started by: presul
2 Replies
HIME(1) 						    hime input method platform							   HIME(1)

NAME
hime - an input method server SYNOPSIS
hime [-h|-v|--version] DESCRIPTION
hime is an input method(IM) server, which focused mainly on Traditional Chinese. It is also very useful for Simplified Chinese, Japanese, and many other languages. IM table format of hime is almost as same as those of scim and xcin. Users may append their IMs to hime very eas- ily. If you are looking for configuration tool of hime, please see the manpage of hime-setup. OPTIONS
-h, -v, --version Show version of hime. FILES
/usr/share/hime/table/gtab.list Input methods available for hime. You may copy it to $HOME/.config/hime/ and edit it as you like. If you have no $HOME/.con- fig/hime/gtab.list, /usr/share/hime/table/gtab.list will be used. /usr/share/hime/script/utf8-edit A file helps hime finding text editors when needed. You may add any UTF-8 compatible text editor to it. ENVIRONMENT VARIABLES
LC_CTYPE For bash: export LC_CTYPE=zh_TW.UTF-8 For csh: setenv LC_CTYPE zh_TW.UTF-8 XMODIFIERS For bash: export XMODIFIERS=@im=hime For csh: setenv XMODIFIERS @im=hime GTK_IM_MODULE For bash: export GTK_IM_MODULE=hime For csh: setenv GTK_IM_MODULE hime QT_IM_MODULE For bash: export QT_IM_MODULE=hime For csh: setenv QT_IM_MODULE hime HIME_CONNECT_MSG_ON Display messages for socket connections. HIME_DBG_TMP Display additional debug messages. HIME_ERR_COREDUMP Option for debugging. HIME_IM_CLIENT_NO_AUTO_EXEC Disable auto-evoke in hime protocol. HIME_OUTPUT_FILTER Assign output filter to process data before the IM server send them to clients. HIME_TABLE_DIR Assign directory for IM tables other then /usr/share/hime/table. SEE ALSO
hime-setup(1), cin2gtab(1), hime-phoa2d(1), hime-juyin-learn(1), hime-message(1) AUTHORS
Edward Der-Hua Liu Wrote hime and associated tools. Friend of Chanjei IM, Malaysia <www.chinesecj.com> Author of original Chanjei IM version 5 table. Dayi Co., Ltd. <http://www.dayi.com> Author of Dayi IM. HIME 0.8 2 FEB 2008 HIME(1)
All times are GMT -4. The time now is 05:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy