English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

The exact syntax varies by shell but generally will look like this:

ksh: var="value" - scoped within the script
ksh: export var="value" - so you don't lose scope

sh: var="value" - scoped within the script
sh: var="value" ; export var - so you don't lose scope

2007-05-02 10:30:32 · answer #1 · answered by Jim Maryland 7 · 1 0

In Korn Shell, you would normally just issue this statement (as an example):

export DEFAULT_PRINTER="LP12"

or in two statements:

DEFAULT_PRINTER="LP12"
export DEFAULT_PRINTER

2007-05-02 17:43:57 · answer #2 · answered by SteveN 7 · 0 0

fedest.com, questions and answers