[comp.sys.atari.st] gulam problems - please help

klute%trillian.irb@unido.uucp (Rainer Klute) (10/05/88)

I have some problems with parameter transmission to gulam shell
scripts. First, after reading $* *once* (e. g. echo "$*") it
appears to be *empty*. So if you want to use it several times
you have to copy it to some more "resistant" gulam variable (e.
g. set param "$*").

Ok, I can live with that. But now comes the real problem: I
want to give some options beginning with a minus sign '-' to a
gulam script like

	script -a -b <files>

What happens is that only a crippled parameter string is
transferred to the script: *no* minus-options and not all
<files>. If the minus-options are omitted everything works just
fine. Try the following script:

set param "$*"
echo "$param"
echo "$*"
foreach i { $param }
	echo $i
endfor

I have already tried things like
	script '-a' '-b' file1 file2
	script '-a -b file1 file2'
but nothing works. Any ideas?

	Thanks in advance
	Rainer Klute

+---------------------------+-----------------------------------------------+
|                           | Domain: klute@irb.informatik.uni-dortmund.de  |
|   Rainer Klute            | UUCP:   klute@unido.uucp                      |
|   University of Dortmund  | Bang:   ...uunet!mcvax!unido!klute            |
|   IRB                     | Bitnet: klute@unido.bitnet                    |
|   P.O. Box 500500         | CSNET/ARPA: klute%unido@uunet.uu.net          |
| D-4600 Dortmund 50        | Tel.:   +49 231 7554663 (@work)               |
|                           |         +49 231 128414  (@home)               |
+---------------------------+-----------------------------------------------+
|                        Federal Republic of Germany                        |
+---------------------------------------------------------------------------+