< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事
N :次の記事(スレッド移動)
|<:スレッドの先頭
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Lars Christensen wrote:
> Hi,
>
> When I set ENV['PATH'] to nil/empty or some path not including the ruby
> installation diretory, Kernel#system will still happily launch
> executables located in the same directory as ruby itself. For example:
It seems that deleting the env var is different from setting it to an
empty string (probably deleting it causes a fallback to the original value).
puts system("ruby -v")
puts
ENV["PATH"] = ""
p ENV["PATH"]
puts system("ruby -v")
puts
ENV.delete "PATH"
p ENV["PATH"]
puts system("ruby -v")
puts
__END__
ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-linux]
true
""
false
nil
ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-linux]
true
--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407