From c59ed6b7bdc45764ab688cf09435b87bddd18be6 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Sun, 22 Mar 2015 10:35:09 +0100 Subject: [PATCH] complete documentation about tempfile handling --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 761ef69..af03e54 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,16 @@ testfun() { fn "testfun" # print out with nice green colors notice "Custom var: $myvar" + # create a tempfile + ztmp && mytmp=$ztmpfile + # put the value into the tempfile + print $myvar >> $mytmp + # print out the path to the tempfile + act "Temp file: $mytmp" + # print out the contents of the tempfile + act "Content: `cat $mytmp`" + # the tempfile will be deleted in endgame() + # but can also be delete earlier here, optionally } # wrap the init phase