mirror of
https://github.com/boostorg/build.git
synced 2026-02-14 00:32:11 +00:00
Quote environement variable assignements.
[SVN r54299]
This commit is contained in:
@@ -501,10 +501,12 @@ if "\n" = "n"
|
||||
# see below.
|
||||
nl = "
|
||||
" ;
|
||||
q = "" ;
|
||||
}
|
||||
else
|
||||
{
|
||||
nl = "\n" ;
|
||||
q = "\"" ;
|
||||
}
|
||||
|
||||
# Returns the command needed to set an environment variable on the current
|
||||
@@ -526,7 +528,7 @@ rule variable-setting-command ( variable : value )
|
||||
# sequence that messes up the executed export command which then reports
|
||||
# that the passed variable name is incorrect.
|
||||
# But we have a check for cygwin in kernel/bootstrap.jam already.
|
||||
return "$(variable)=$(value)$(nl)export $(variable)$(nl)" ;
|
||||
return "$(variable)=$(q)$(value)$(nl)export $(variable)$(q)$(nl)" ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user