Dear,

Your statement:

shell "find "$chain" file.txt > result.txt"

will be interpretated as

SHELL "find"
$chain
"file.txt >result.txt"

which will show

1. find help menu
2. value of variable $chain
3. the text as file.txt >result.txt on the same line.

You shouldn't forget that ', ", $ and @ are special symbols in kixtart.
For a good story see FAQ topic Not quite everything you wanted to know about RUN and SHELL
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA