Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81919 - trunk/tools/inspect
From: dnljms_at_[hidden]
Date: 2012-12-13 17:13:41


Author: danieljames
Date: 2012-12-13 17:13:41 EST (Thu, 13 Dec 2012)
New Revision: 81919
URL: http://svn.boost.org/trac/boost/changeset/81919

Log:
Fix shell command in inspect.

On Unix shells '&' causes a command to run in the background, '&&' is used to
run one command after another. Although this doesn't fix the problem I've been
having on the release branch.
Text files modified:
   trunk/tools/inspect/inspect.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/tools/inspect/inspect.cpp
==============================================================================
--- trunk/tools/inspect/inspect.cpp (original)
+++ trunk/tools/inspect/inspect.cpp 2012-12-13 17:13:41 EST (Thu, 13 Dec 2012)
@@ -131,7 +131,7 @@
     string rev("unknown");
     string repos("unknown");
     string command("cd ");
- command += inspect_root.string() + " & svn info";
+ command += inspect_root.string() + " && svn info";
     FILE* fp = POPEN(command.c_str(), "r");
     if (fp)
     {


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