From: mquinson Date: Fri, 3 Oct 2008 12:24:18 +0000 (+0000) Subject: Document the new mkfile buildin command X-Git-Tag: v3.3~149 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d0378e55d235a421a6ce032d1d44f108cb86d640?hp=3fc69c46ff31041328cd0d87e4b10527f3097d2d Document the new mkfile buildin command git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5960 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/tools/tesh/README.tesh b/tools/tesh/README.tesh index 5eb44e87c8..95a2374fba 100644 --- a/tools/tesh/README.tesh +++ b/tools/tesh/README.tesh @@ -48,10 +48,26 @@ errors such as the following: $ cd toto > TOTO - $ cat > file + $ mkfile file TOTO will be passed to the cd command, where the user clearly want to pass it -to cat. +to the mkfile buildin command (see below). + +Stream redirection +------------------ +Stream redirections (">", "<" and "|" constructs in sh) are not +implemented yet in tesh. This is a bit restrictive, but well, patch +welcome... + +The situation in which it is mainly problematic is to create a +temporary file. The solution is to use the "mkfile" buildin command, +as in the following example: +$ mkfile myFile +> some content +> to the file + +This will create a file called myFile (first argument of the mkfile +command). Its content will be all the input provided to the command. RETURN CODE -----------