summaryrefslogtreecommitdiffstats
path: root/Source/cmExecProgramCommand.cxx
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-01-19 01:33:28 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-01-19 01:33:28 (GMT)
commit5ab173b5eae396c5305ea60a453e3df4baf68d23 (patch)
tree264a8e246b3176e555b2ef615bd04accdb578c87 /Source/cmExecProgramCommand.cxx
parentc26008ccf3999156cab5a05172a04c562bed9cc8 (diff)
downloadCMake-5ab173b5eae396c5305ea60a453e3df4baf68d23.zip
CMake-5ab173b5eae396c5305ea60a453e3df4baf68d23.tar.gz
CMake-5ab173b5eae396c5305ea60a453e3df4baf68d23.tar.bz2
Fix: "cd arg2 ; arg1" not working. OK with &&. Also should prevent from: "cd non_existing_dir_oops && rm -fr *"
Diffstat (limited to 'Source/cmExecProgramCommand.cxx')
-rw-r--r--Source/cmExecProgramCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExecProgramCommand.cxx b/Source/cmExecProgramCommand.cxx
index ab2d676..781c405 100644
--- a/Source/cmExecProgramCommand.cxx
+++ b/Source/cmExecProgramCommand.cxx
@@ -59,7 +59,7 @@ bool cmExecProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
std::string command;
command = "cd ";
command += args[1].c_str();
- command += "; ";
+ command += " && ";
command += args[0].c_str();
cmSystemTools::RunCommand(command.c_str(), output);
}