extract /alt/ produces invalid results
Brought to you by:
rexx
Extract /alt/ produces two entries that are always 0
00000010 "command extract /alt/"
00000011 say 'alt.0='alt.0
00000012 do i = 1 to alt.0
00000013 say 'alt'i = alt.i
00000014 end
alt.0=2 <==== notice that this line is printed twice by the above code.
alt.0=2
0
0
This is not evidence of a bug in Regina/THE.
The 'say' statement in line 13 outputs the result of the expression,
which is to abuttal concatenate a literal string with the value of a
variable, then to compare the resultant string to the string in a stem
variable.
It's no surprise that the comparison is unequal, thus the output is
'0'. Put quotes around the '=' and see if you don't get better results.
I would suggest turning 'Trace Intermediates' on to see if there isn't
an explanation for the apparently duplicated line, as well.
-Chip-
On 10/1/2014 1:19 AM, George R. Goffe wrote:
Related
Bugs: #280
Try this:
"command extract /alt/"
'msg alt.0='alt.0
do i = 1 to alt.0
' msg alt.'i' = 'alt.i
end
exit
Les,
Something strange here...
!/usr/lsd/bin/regina
/ /
/ /
/ /
trace off
parse arg args
"command extract /alt/"
'msg alt.0='alt.0
do i = 1 to alt.0
' msg alt.'i' = 'alt.i
end
exit 0
joker-bash 4.2 /porn/friendofzb# which regina
/usr/lsd/Linux/bin/regina
joker-bash 4.2 /porn/friendofzb# regina --version
regina: REXX-Regina_3.8.2(MT) 5.00 22 Jun 2014 (64 bit)
From: LesK vmrexx@users.sf.net
To: [hessling-editor:bugs] 280@bugs.hessling-editor.p.re.sf.net
Sent: Friday, October 17, 2014 7:23 PM
Subject: [hessling-editor:bugs] Re: #280 extract /alt/ produces invalid results
Try this:
"command extract /alt/"
'msg alt.0='alt.0
do i = 1 to alt.0
' msg alt.'i' = 'alt.i
end
exit
[bugs:#280] extract /alt/ produces invalid results
Status: open
Group:
Created: Wed Oct 01, 2014 05:19 AM UTC by George R. Goffe
Last Updated: Wed Oct 01, 2014 05:19 AM UTC
Owner: nobody
Extract /alt/ produces two entries that are always 0
00000010 "command extract /alt/"
00000011 say 'alt.0='alt.0
00000012 do i = 1 to alt.0
00000013 say 'alt'i = alt.i
00000014 end
alt.0=2 <==== notice that this line is printed twice by the above code.
alt.0=2
0
0
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/hessling-editor/bugs/280/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Bugs: #280
Les,
I see that I have left off the most important part of this rexx program... It's execution. Here's what I get.
./tstalt
sh: extract: command not found
sh: msg: command not found
14 +++ do i = 1 to alt.0
Error 41 running "/export/home/porn/friendofzb/tstalt", line 14: Bad arithmetic conversion
From: George R. Goffe grgoffe@users.sf.net
To: [hessling-editor:bugs] 280@bugs.hessling-editor.p.re.sf.net
Sent: Friday, October 17, 2014 7:45 PM
Subject: [hessling-editor:bugs] Re: #280 extract /alt/ produces invalid results
Les,
Something strange here...
!/usr/lsd/bin/regina
trace off
parse arg args
"command extract /alt/"
'msg alt.0='alt.0
do i = 1 to alt.0
' msg alt.'i' = 'alt.i
end
exit 0
joker-bash 4.2 /porn/friendofzb# which regina
/usr/lsd/Linux/bin/regina
joker-bash 4.2 /porn/friendofzb# regina --version
regina: REXX-Regina_3.8.2(MT) 5.00 22 Jun 2014 (64 bit)
From: LesK vmrexx@users.sf.net
To: [hessling-editor:bugs] 280@bugs.hessling-editor.p.re.sf.net
Sent: Friday, October 17, 2014 7:23 PM
Subject: [hessling-editor:bugs] Re: #280 extract /alt/ produces invalid results
Try this:
"command extract /alt/"
'msg alt.0='alt.0
do i = 1 to alt.0
' msg alt.'i' = 'alt.i
end
exit
[bugs:#280] extract /alt/ produces invalid results
Status: open
Group:
Created: Wed Oct 01, 2014 05:19 AM UTC by George R. Goffe
Last Updated: Wed Oct 01, 2014 05:19 AM UTC
Owner: nobody
Extract /alt/ produces two entries that are always 0
00000010 "command extract /alt/"
00000011 say 'alt.0='alt.0
00000012 do i = 1 to alt.0
00000013 say 'alt'i = alt.i
00000014 end
alt.0=2 <==== notice that this line is printed twice by the above code.
alt.0=2
0
0
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/hessling-editor/bugs/280/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
[bugs:#280] extract /alt/ produces invalid results
Status: open
Group:
Created: Wed Oct 01, 2014 05:19 AM UTC by George R. Goffe
Last Updated: Wed Oct 01, 2014 05:19 AM UTC
Owner: nobody
Extract /alt/ produces two entries that are always 0
00000010 "command extract /alt/"
00000011 say 'alt.0='alt.0
00000012 do i = 1 to alt.0
00000013 say 'alt'i = alt.i
00000014 end
alt.0=2 <==== notice that this line is printed twice by the above code.
alt.0=2
0
0
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/hessling-editor/bugs/280/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Bugs: #280
Looks like either you're not in THE, the file extension isn't .the and/or
the file isn't in the macro path.
Oh, wait! You're running on a *nix system. I don't know how THE resolves
a macro invocation there. You'll have to check the doc or wait for someone
who knows about such archaic and arcane OS's.
I can assure you that the code runs properly on W7 with ooRexx, so Regina
itself won't have a problem with it.
Les,
That was a macro? I should have known that. Duh...
I'll put it in my macro path... DUH. A mind is a terrible thing to waste.
Since I wrote this bug I have rebuilt the and regina. It does appear to be working now.
I have the environment variables pointing to multiple paths to "the" macros (separated by ':'s)... This works just fine. Linux == archaic? I would go for arcane for sure. Go to your favorite search engine and search on "If OS's were beers". You'll LYAO... be sure to sit down first though.
Please close this bug.
Regards and thanks for all your help,
George...
From: LesK vmrexx@users.sf.net
To: [hessling-editor:bugs] 280@bugs.hessling-editor.p.re.sf.net
Sent: Saturday, October 18, 2014 5:37 PM
Subject: [hessling-editor:bugs] #280 extract /alt/ produces invalid results
Looks like either you're not in THE, the file extension isn't .the and/or
the file isn't in the macro path.
Oh, wait! You're running on a *nix system. I don't know how THE resolves
a macro invocation there. You'll have to check the doc or wait for someone
who knows about such archaic and arcane OS's.
I can assure you that the code runs properly on W7 with ooRexx, so Regina
itself won't have a problem with it.
[bugs:#280] extract /alt/ produces invalid results
Status: open
Group:
Created: Wed Oct 01, 2014 05:19 AM UTC by George R. Goffe
Last Updated: Wed Oct 01, 2014 05:19 AM UTC
Owner: nobody
Extract /alt/ produces two entries that are always 0
00000010 "command extract /alt/"
00000011 say 'alt.0='alt.0
00000012 do i = 1 to alt.0
00000013 say 'alt'i = alt.i
00000014 end
alt.0=2 <==== notice that this line is printed twice by the above code.
alt.0=2
0
0
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/hessling-editor/bugs/280/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Bugs: #280