Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

couldn't find HOME environment variable when expanding '~' (ArgumentError) #2784

Closed
eregon opened this issue Nov 14, 2022 · 1 comment
Closed

Comments

@eregon
Copy link
Member

eregon commented Nov 14, 2022

It seems CRuby has a fallback in the case HOME is unset:

$ unset HOME          
$ ruby -e 'p Dir.home'
"/home/eregon"
$ HOME=/home ruby -e 'p Dir.home'
"/home"

Found in SeleniumHQ/selenium#11251 (comment)

Related: jruby/jruby#5661

@p0deje
Copy link

p0deje commented Nov 14, 2022

Fixing this would also make Bazel rules for Ruby a bit easier - bazel-contrib/rules_ruby@80b362c

graalvmbot pushed a commit that referenced this issue Nov 17, 2022
eregon added a commit to ruby/spec that referenced this issue Jan 5, 2023
* Fixes oracle/truffleruby#2784
* Use getpwuid_r(getuid()) for simplicity and reliability.
sophie-kaleba pushed a commit to sophie-kaleba/truffleruby that referenced this issue Jan 16, 2023
* Fixes oracle#2784
* Use getpwuid_r(getuid()) for simplicity and reliability.
sophie-kaleba pushed a commit to sophie-kaleba/truffleruby that referenced this issue Jan 17, 2023
* Fixes oracle#2784
* Use getpwuid_r(getuid()) for simplicity and reliability.
sophie-kaleba pushed a commit to sophie-kaleba/truffleruby that referenced this issue Feb 16, 2023
* Fixes oracle#2784
* Use getpwuid_r(getuid()) for simplicity and reliability.
john-heinnickel pushed a commit to thermofisher-jch/truffleruby that referenced this issue Aug 16, 2023
* Fixes oracle#2784
* Use getpwuid_r(getuid()) for simplicity and reliability.
seven1m pushed a commit to seven1m/ruby_spec that referenced this issue Sep 2, 2023
* Fixes oracle/truffleruby#2784
* Use getpwuid_r(getuid()) for simplicity and reliability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants