home *** CD-ROM | disk | FTP | other *** search
- #! ../src/pfe -q
- \ ^ this space is vital.
- \
- \ This is a Forth file used as shell script.
- \
- \ This file is passed to the interpreter described with full path
- \ name in the first line. Please make shure that this path name is
- \ correct on your installation. (You'll HAVE to change it!)
- \
- \ Any arguments to the script file (this file) starting with the
- \ script file itself are visible inside pfe by means of the words:
- \
- \ ARGC ( --- n ; count of parameters, at least 1 )
- \ ARGV ( n --- addr len ; returns the n'th argument )
- \
- \ If you execute this script like any other shell command
- \ then you should see the parameters passed to this script.
- \
-
- : DISPLAY-ARGUMENTS
- ARGC 0 DO
- CR I 2 .R ." [" I ARGV TYPE ." ]"
- LOOP ;
-
- .( These are the command line arguments of the script:)
- DISPLAY-ARGUMENTS
- BYE
-