From: Johan Veenstra Date: 2007-01-30T22:59:39+09:00 Subject: Re: How to get the unix login name of the calling user? ------=_Part_48985_18504685.1170165570484 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 1/30/07, Moritz Reiter wrote: > > Stephane Wirtel wrote: > >> File.expand_path('~/.my_config_file'). > > Why not ENV['HOME'] ? > > Yes, I think in my case both solutions are equivalent. > > -- > Posted via http://www.ruby-forum.com/. Since you're on a unix system: `whoami` #=> "johan" haven't tested it ------=_Part_48985_18504685.1170165570484--