Commit c7fc125
committed
Make RUBIES a colon-delimited string instead of an array
Motivation
---
Fix chruby in Claude. Core issue is RUBIES is not set in claude shells.
Before
---
RUBIES was a bash array, and bash arrays cannot be exported. So every
fresh subshell — including every Claude Code Bash tool call — started
with an empty RUBIES and chruby failed to resolve any Ruby version,
even though RUBY_ROOT, GEM_HOME, and PATH were already set correctly
in that same subshell.
After
---
RUBIES is exported as a colon-delimited string, like PATH, so chruby
resolves correctly in any subshell, including Claude's. One side
effect: RUBIES now shows up in every child process's environment
(e.g. in `env` output), which it never did as an array.1 parent a543a35 commit c7fc125
1 file changed
Lines changed: 12 additions & 5 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | | - | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
74 | | - | |
| 79 | + | |
| 80 | + | |
75 | 81 | | |
76 | 82 | | |
77 | 83 | | |
| |||
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
87 | | - | |
| 93 | + | |
| 94 | + | |
88 | 95 | | |
89 | 96 | | |
90 | 97 | | |
| |||
0 commit comments