Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54299 - trunk/tools/build/v2/tools
From: ghost_at_[hidden]
Date: 2009-06-24 06:01:11


Author: vladimir_prus
Date: 2009-06-24 06:01:10 EDT (Wed, 24 Jun 2009)
New Revision: 54299
URL: http://svn.boost.org/trac/boost/changeset/54299

Log:
Quote environement variable assignements.

Text files modified:
   trunk/tools/build/v2/tools/common.jam | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: trunk/tools/build/v2/tools/common.jam
==============================================================================
--- trunk/tools/build/v2/tools/common.jam (original)
+++ trunk/tools/build/v2/tools/common.jam 2009-06-24 06:01:10 EDT (Wed, 24 Jun 2009)
@@ -501,10 +501,12 @@
     # see below.
     nl = "
 " ;
+ q = "" ;
 }
 else
 {
     nl = "\n" ;
+ q = "\"" ;
 }
 
 # Returns the command needed to set an environment variable on the current
@@ -526,7 +528,7 @@
         # 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)" ;
     }
 }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk