Skip to content

unsetenv_others and close_others only allows bool.#2698

Merged
ksss merged 2 commits intoruby:masterfrom
ksss:unsetenv_others-bool
Nov 7, 2025
Merged

unsetenv_others and close_others only allows bool.#2698
ksss merged 2 commits intoruby:masterfrom
ksss:unsetenv_others-bool

Conversation

@ksss
Copy link
Copy Markdown
Collaborator

@ksss ksss commented Nov 5, 2025

The execution option unsetenv_others and close_others only allows true or false.

$ ruby -e 'system("env", unsetenv_others: :ok)'
-e:1:in 'Kernel#system': expected true or false as unsetenv_others: :ok (ArgumentError)
	from -e:1:in '<main>'

$ ruby -e 'system("env", close_others: :ok)'
-e:1:in 'Kernel#system': expected true or false as close_others: :ok (ArgumentError)
	from -e:1:in '<main>'

Implementations:

@ksss ksss changed the title unsetenv_others only allows bool. unsetenv_others and close_others only allows bool. Nov 5, 2025
@ksss ksss added this to the RBS 4.0 milestone Nov 5, 2025
@ksss ksss added this pull request to the merge queue Nov 7, 2025
Merged via the queue into ruby:master with commit 468c20d Nov 7, 2025
20 checks passed
@ksss ksss deleted the unsetenv_others-bool branch November 7, 2025 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant