export 大域変数 追加

export構文 】
export [-p]  

exportオプション  
-p  現在のシェル内でエクスポートされた変数を表示する
 

export説明  】

 

【export使用例】
変数の表示
[oguraan@localhost ~]$ export -p
declare -x G_BROKEN_FILENAMES="1"
declare -x HISTSIZE="1000"
declare -x HOME="/home/oguraan"
declare -x HOSTNAME="localhost.localdomain"
declare -x INPUTRC="/etc/inputrc"
declare -x LANG="ja_JP.UTF-8"
declare -x LESSOPEN="|/usr/bin/lesspipe.sh %s"
declare -x LOGNAME="oguraan"
省略・・・


       export -p
              The  supplied names are marked for automatic export to the environ-
              ment of subsequently executed commands.  If the -f option is given,
              the  names refer to functions.  If no names are given, or if the -p
              option is supplied, a list of all names that are exported  in  this
              shell  is  printed. 

The -n option causes the export property to be
              removed from each name.  If a variable name is followed  by  =word,
              the  value  of the variable is set to word.  export returns an exit
              status of 0 unless an invalid option is  encountered,  one  of  the
              names  is not a valid shell variable name, or -f is supplied with a
              name that is not a function.

サーバ運用(ランキング)


blogram投票ボタン




サーバ構築(ランキング)を見る。



トラックバック(0)

このブログ記事を参照しているブログ一覧: export 大域変数 追加

このブログ記事に対するトラックバックURL: http://websky21.com/MT/mt-tb.cgi/904