From: Michael Gamble <magic@us...> - 2006-03-24 19:30:48
Before I submit a bug, I thought I'd inquire about a Linein problem I've
uncovered. The problem occurs in regina-3.2-110.1, but not in regina-3.0-17
on SuSE SLES servers. My guess is that the linein "compatibility" change
introduced this. Here's a stripped down test case:
passwd = "/etc/passwd" /* just for convenience */
Do While Lines(passwd) > 0 /* process all lines in the file */
line = Linein(passwd,l) /* get a line */
Parse Var line usr ":" . ":" uid ":" gid ":" uinfo ":" . ":" shell
If usr = "myusrid" Then
"usermod -c 'myusrid@... 123456789 Gamble, Michael W.'
What happens is that on the iteration after the "if" statement is true, the
<line> is set to the remaining characters after the original line length.
In reading the latest regina rexx doc, this seems to be what's happening.
Although the VM rexx doc is not as precise in defining the EOL, it hints at
it in describing the interaction with CHARIN.
One workaround is to use Linein with a line number which seems to work
except it is dependent on the version of regina. Seeing as we have several
version plus some other rexx over which I have no control, I will have to
resort to using the queue which is what I wanted to avoid to begin with.
Michael W. Gamble IBM
Global Services - Linux on zSeries Team
(817)962-8329 tl 522-8329 will page at home VM: MAGIC at VMSDVM7
Internet: MAGIC@... LNotes: MAGIC at
Get latest updates about Open Source Projects, Conferences and News.