From 5da58b425b5be8faa4c1b703815c9f3597924c81 Mon Sep 17 00:00:00 2001 From: mquinson Date: Mon, 6 Apr 2009 08:44:47 +0000 Subject: [PATCH] Give tesh the ability to get the CWD to use from the --cd command line argument git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6189 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- tools/tesh/tesh.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/tools/tesh/tesh.c b/tools/tesh/tesh.c index 9fcee3e11a..a83a4e4ce6 100644 --- a/tools/tesh/tesh.c +++ b/tools/tesh/tesh.c @@ -179,6 +179,7 @@ static void parse_environ(){ int main(int argc,char *argv[]) { FILE *IN; + int i; /* Ignore pipe issues. They will show up when we try to send data to dead buddies, @@ -192,6 +193,23 @@ int main(int argc,char *argv[]) { rctx_init(); parse_environ(); + /* Get args */ + for (i=1; i