diff options
author | Brian Gough <bjg@gnu.org> | 2009-12-09 17:59:59 +0000 |
---|---|---|
committer | Neil Jerram <neil@ossau.uklinux.net> | 2009-12-17 23:17:50 +0000 |
commit | e03d96363fc4c68b74f6a0da584d95a889f8d9a0 (patch) | |
tree | fa1ff823747a6518da8626750ac6cd840f46242a /doc/ref/scheme-scripts.texi | |
parent | d746e18ef534ded8d8312dba89e31b5f3e7338af (diff) | |
download | guile-e03d96363fc4c68b74f6a0da584d95a889f8d9a0.tar.gz |
use explicit ./scriptname to help novice users
Diffstat (limited to 'doc/ref/scheme-scripts.texi')
-rw-r--r-- | doc/ref/scheme-scripts.texi | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/ref/scheme-scripts.texi b/doc/ref/scheme-scripts.texi index 249bc3414..f47ecf774 100644 --- a/doc/ref/scheme-scripts.texi +++ b/doc/ref/scheme-scripts.texi @@ -458,7 +458,7 @@ Here is a script which prints the factorial of its argument: @end example In action: @example -$ fact 5 +$ ./fact 5 120 $ @end example @@ -487,7 +487,7 @@ definitions, without any extraneous computation taking place. Then we used the meta switch @code{\} and the entry point switch @code{-e} to tell Guile to call @code{main} after loading the script. @example -$ fact 50 +$ ./fact 50 30414093201713378043612608166064768844377641568960512000000000000 @end example @@ -515,17 +515,17 @@ The command-line arguments here tell Guile to first load the file point. In other words, the @code{choose} script can use definitions made in the @code{fact} script. Here are some sample runs: @example -$ choose 0 4 +$ ./choose 0 4 1 -$ choose 1 4 +$ ./choose 1 4 4 -$ choose 2 4 +$ ./choose 2 4 6 -$ choose 3 4 +$ ./choose 3 4 4 -$ choose 4 4 +$ ./choose 4 4 1 -$ choose 50 100 +$ ./choose 50 100 100891344545564193334812497256 @end example |