Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ruby-build
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ruby-build
Commits
49008275
Commit
49008275
authored
Oct 28, 2015
by
Mislav Marohnić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure IFS is reset to original value every time
parent
768b1d00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
bin/ruby-build
+5
-1
No files found.
bin/ruby-build
View file @
49008275
...
@@ -13,6 +13,8 @@
...
@@ -13,6 +13,8 @@
RUBY_BUILD_VERSION
=
"20151024"
RUBY_BUILD_VERSION
=
"20151024"
OLDIFS
=
"
$IFS
"
set
-E
set
-E
exec
3<&2
# preserve original stderr at fd 3
exec
3<&2
# preserve original stderr at fd 3
...
@@ -102,6 +104,7 @@ os_information() {
...
@@ -102,6 +104,7 @@ os_information() {
osx_version
()
{
osx_version
()
{
local
-a
ver
local
-a
ver
IFS
=
.
ver
=(
`
sw_vers
-productVersion
`
)
IFS
=
.
ver
=(
`
sw_vers
-productVersion
`
)
IFS
=
"
$OLDIFS
"
echo
$((
${
ver
[0]
}
*
100
+
${
ver
[1]
}
))
echo
$((
${
ver
[0]
}
*
100
+
${
ver
[1]
}
))
}
}
...
@@ -763,6 +766,7 @@ require_gcc() {
...
@@ -763,6 +766,7 @@ require_gcc() {
locate_gcc
()
{
locate_gcc
()
{
local
gcc gccs
local
gcc gccs
IFS
=
:
gccs
=(
$(
gccs_in_path
)
)
IFS
=
:
gccs
=(
$(
gccs_in_path
)
)
IFS
=
"
$OLDIFS
"
verify_gcc
"
$CC
"
||
verify_gcc
"
$CC
"
||
verify_gcc
"
$(
command
-v
gcc
||
true
)
"
||
{
verify_gcc
"
$(
command
-v
gcc
||
true
)
"
||
{
...
@@ -778,6 +782,7 @@ gccs_in_path() {
...
@@ -778,6 +782,7 @@ gccs_in_path() {
local
gcc path paths
local
gcc path paths
local
gccs
=()
local
gccs
=()
IFS
=
:
paths
=(
$PATH
)
IFS
=
:
paths
=(
$PATH
)
IFS
=
"
$OLDIFS
"
shopt
-s
nullglob
shopt
-s
nullglob
for
path
in
"
${
paths
[@]
}
"
;
do
for
path
in
"
${
paths
[@]
}
"
;
do
...
@@ -1062,7 +1067,6 @@ unset IPV6
...
@@ -1062,7 +1067,6 @@ unset IPV6
RUBY_BUILD_INSTALL_PREFIX
=
"
$(
abs_dirname
"
$0
"
)
/.."
RUBY_BUILD_INSTALL_PREFIX
=
"
$(
abs_dirname
"
$0
"
)
/.."
OLDIFS
=
"
$IFS
"
IFS
=
:
RUBY_BUILD_DEFINITIONS
=(
$RUBY_BUILD_DEFINITIONS
${
RUBY_BUILD_ROOT
:-
$RUBY_BUILD_INSTALL_PREFIX
}
/share/ruby-build
)
IFS
=
:
RUBY_BUILD_DEFINITIONS
=(
$RUBY_BUILD_DEFINITIONS
${
RUBY_BUILD_ROOT
:-
$RUBY_BUILD_INSTALL_PREFIX
}
/share/ruby-build
)
IFS
=
"
$OLDIFS
"
IFS
=
"
$OLDIFS
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment