Re: recursion, what"s wrong here?
am 26.10.2007 23:35:57 von bmynars
http-equiv="Content-Type">
R. Brand wrote:
type="cite">
Ed Morton ...
He didn't tell us the error message, just that there was what he perceived to
be an error message indicating a syntax error. It would be helpful to see the
actual error message ;).
First of all, thanks for all your responses.
I am at home right now and don't have the same unix environment here.
The error I am receiving is
../myscript FILE1.TXT
myscript: lline 11: FILE1.TXT: arithmetic syntax error.
Not much to go on here. All I see is that you are passing a file for
processing (assuming some kind of loop is used). Arithmetic syntax
error would usually mean that you are trying to
add/subtract/divide/multiple a non integer.
Are you doing any error/value checking at all? It would help if you
posted a snippet of your script.
type="cite">
I assume it has something to do with the until loop. I already tried
it with a while ... -ne but it still wouldn't work.
Do you see any logical mistakes I could have made? My idea was to
write every match into the following array element and then to examine
the subsequent array elements until the array is empty (i.e. the last
valid element containing a filename has been checked)
Regards,
Rob
--