Commit 14dea60
committed
Avoid passing bogus -classpath when empty
If no CLASSPATH env is provided when running jruby.sh, we end up
building a bogus classpath flag of `-classpath :`. Other situations
may result in forms like `-classpath some.jar:` or
`-classpath :some.jar`. The changes here avoid passing -classpath
at all if empty, and only insert delimiters when concatenating
classpaths if they are non-empty.
Possible fix for jruby#92551 parent f1c5ab7 commit 14dea60
1 file changed
Lines changed: 21 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
852 | | - | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
853 | 861 | | |
854 | 862 | | |
855 | 863 | | |
| |||
992 | 1000 | | |
993 | 1001 | | |
994 | 1002 | | |
995 | | - | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
996 | 1007 | | |
997 | | - | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
998 | 1013 | | |
999 | 1014 | | |
1000 | 1015 | | |
1001 | | - | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
1002 | 1019 | | |
1003 | 1020 | | |
1004 | 1021 | | |
| |||
0 commit comments