Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://comet.sai.msu.ru/UNIXhelp/environment/sh_var.html
Дата изменения: Fri Jan 17 12:43:16 1997 Дата индексирования: Tue Oct 2 02:03:30 2012 Кодировка: Поисковые слова: cygnus |
To define a temporary value to a shell variable use the command:
set variable_name=value
The value of this variable will remain set until you exit from this shell. The value of this variable is not exported to other C shells when they are invoked.
To give a lasting value to a shell variable:
1. Use an editor to open your .cshrc (.tcshrc) file and add the line:
set variable_name=value
2. Save the file and leave the editor.
3. Enter the command:
source .cshrc
This adds the value of the shell variable to your shell's present environment. When other C shells are invoked they will also have this variable set.