.\" You may copy, distribute and modify under the terms of the LDP General .\" Public License as specified in the LICENSE file that comes with the .\" gnumaniak distribution .\" .\" The author kindly requests that no comments regarding the "better" .\" suitability or up-to-date notices of any info documentation alternative .\" is added without contacting him first. .\" .\" (C) 1999-2002 Ragnar Hojland Espinosa .\" .\" GNU env man page .\" man pages are NOT obsolete! .\" .\" .\" Japanese Version Copyright (c) 2000 NAKANO Takeo all rights reserved. .\" Translated Sun 12 Mar 2000 by NAKANO Takeo .\" .TH env 1 "18 June 2002" "GNU Shell Utilities 2.1" .SH 名前 env \- 環境を変更してプログラムを実行する .SH 書式 .BI "env [\-] [\-i] [\-u " name "] [\-\-ignore-environment] [\-\-unset=" name ] .BI [ name = value ] ... "] [" command " [" args... ]] .sp .B env [\-\-help] [\-\-version] .SH 説明 .B env は、コマンドラインで指定したように環境を変更して .I command を実行する。`variable=value' の形式の引数は、環境変数 .I variable を値 .I value に設定する。 .I value は空でもよい (`variable=')。変数を空の値に設定するのは、 その変数自体を無効にするのとは異なる。 .PP 残った引き数のうちの最初のものが、実行されるプログラムを指定する。 プログラムの在処は環境変数 PATH の指定に基づいて検索される。 これ以降の引き数はすべて実行プログラムに引き数として渡される。 .PP 環境変数設定の後にコマンド名が指定されない場合は、 結果として得られた環境を印刷する。 この動作はコマンドに .BR printenv (1) を指定したときと同じ。 .SH オプション .TP .B "\-, \-i, \-\-ignore-environment" 継承された環境を無視して、空の環境から始める。 .TP .BI "\-u, \-\-unset " name 変数 .I name が環境にあれば削除する .TP .B "\-\-help" 標準出力に使用方法のメッセージを出力して正常終了する。 .TP .B "\-\-version" 標準出力にバージョン情報を出力して正常終了する。 .SH 注意 プログラムのバグについては bug-sh-utils@gnu.org に報告してください。 ページの更新は Ragnar Hojland Espinosa が行っています。