2
0
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:
Vladimir Prus
2009-06-24 10:01:10 +00:00
parent 761501ed9c
commit 233cf19c3e

View File

@@ -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)" ;
}
}