[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[plamo:06938] Re: newgrp で $homeが消える
-
From:OGAWA Kunihiko
-
Date:Wed, 6 Sep 2000 14:06:16 +0900
- Subject: [plamo:06938] Re: newgrp で $homeが消える
- From: OGAWA Kunihiko <kuni@xxxxxxxxxx>
- Date: Wed, 6 Sep 2000 14:06:16 +0900
- Posted: Wed, 6 Sep 2000 13:58:04 +0900
小川です。
どなたもコメントなさらないようなので…
>> > # $home 環境変数は,どこで設定されるものなのでしょうか?
>> こちらは、私の場合 .tcshrc で設定しています。
>
> そうなんですか。
> 私の方では /etc/csh.login, /etc/csh.cshrc, ~/.cshrc,
>~/login に記述がないので,シェルが自動的に設定してくれている
>んだと思ってたのですが,
いま手元にある HP-UX と FreeBSD の man csh を見ると
HP-UX
| 定義済み変数と環境変数
| 以下の各変数は、シェルにとって特別な意味を持っています。このうち
| autologout, argv, cwd, home, path, prompt, shell および status は、
| シェルによって必ず設定されます。 cwd と status を除き、上記の変数の設
| 定は、初期化時 (csh の最初の実行時) のみに行われます。これらの変数は、
| ユーザが明示的に変更しない限り不変です。
FreeBSD
| Pre-defined and environment variables
| The following variables have special meaning to the shell. Of these,
| argv, cwd, home, path, prompt, shell and status are always set by the
| shell. Except for cwd and status, this setting occurs only at initial-
| ization; these variables will not then be modified unless done explicitly
| by the user.
となっています。(まったく同一文面ですね)
なので、Linux の tcsh でも同様に、自動的に設定されると思います。
>newgrp 後は設定してくれなくて困惑し
>ていたところでした。
newgrp 後というのがよく分からないのですが…
newgrp というコマンドを使った後、
echo $home
とすると
home: 未定義の変数
などと表示されるのでしょうか?
--
小川邦彦 <kuni@edit.ne.jp>
- Follow-Ups
-
- [plamo:06939] Re: newgrp で$homeが消える, Kengo Takata
- References
-
- [plamo:06935] Re: newgrp で$homeが消える, Kengo Takata
[検索ページ]
[メール一覧]
Plamo ML 公開システム