Hello,
can someone please try out this script:
Quote:
.key FILE
.bra {
.ket }
set echo on
echo "{file}"
SETENV ARGUMENT "{FILE}"
echo "$argument"
getenv argument
dir "{FILE}"
dir $argument
dir "$argument"
set echo off
the problem is, that the latter "DIR" command does not work.
In some kind of weird way, here I get a lot of spaces added to the
argument.
So "work:" becomes "work: " hence DIR or whatever command
will not work.
But on the third last line the script will fail if
a dir like "ram Disk:Rename Me" is given.
AFAI can tell, SETENV adds the unwanted spaces.
So I can think of a workaround for this, but my question is more: is there a general error on how
I'm using the variables or is it a bug?
thx
(the same script works with os3.9)
OS4+2007-07update
Edited by Amigo1 on 2007/9/17 21:28:10