Article View: comp.sys.atari.st
Article #34418gulam problems - please help
From: Rainer Klute
Date: Wed, 05 Oct 1988 10:53
Date: Wed, 05 Oct 1988 10:53
44 lines
2243 bytes
2243 bytes
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 |
+---------------------------------------------------------------------------+
Technical Details
Message-ID:
<646@laura.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uwmcsd1!marque!uunet!mcvax!unido!laura!trillian!kluteShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uwmcsd1!marque!uunet!mcvax!unido!laura!trillian!klute From: klute%trillian.irb@unido.uucp (Rainer Klute) Newsgroups: comp.sys.atari.st Subject: gulam problems - please help Message-ID: <646@laura.UUCP> Date: 5 Oct 88 10:53:41 GMT Sender: root@laura.UUCP Reply-To: klute%trillian@unido.UUCP (Rainer Klute) Organization: University of Dortmund,West Germany Lines: 44