From: Tanaka Akira Date: 2005-09-22T16:09:33+09:00 Subject: [ruby-dev:27286] Re: env -i make; fails. In article , nobuyoshi nakada writes: >> というように :/bin:/usr/bin というのが使われるとあります。 > > 先頭の:は最初にカレントディレクトリを探すということですか。 そうです。 まぁ、カレントディレクトリが PATH に入っているのがデフォルトという、今 となっては非常識な挙動ですね。 > うーん、他のところでもいろいろ出てきそうな気はしますが。 まぁ、そうやってはいけないというほどでもないという程度の話ではあります。 ただ、今となっては . を入れるのは非常識なので入れないほうがいいと思い ます。 SunOS 5.8 の sh(1) には The shell parameter PATH defines the search path for the directory containing the command. Alternative directory names are separated by a colon (:). The default path is /usr/bin. The current directory is specified by a null path name, which can appear immediately after the equal sign, between two colon delimiters anywhere in the path list, or at the end of the path list. とあって、/usr/bin だけみたいですね。 (/bin がないのは /bin -> ./usr/bin な symlink だからかなぁ) -- [田中 哲][たなか あきら][Tanaka Akira]