- A "trivial" REXX question
- Posted by Stan Goodman on November 7th, 2004
The answer seems so obvious that I am ashamed to have to ask the question,
but evidently I am overlooking something. Here is what I have:
SAY ConnectType
[Response: Static] < Correct
SAY COMPARE(ConnectType,'Static') < Wrong
[Response: 1]
What is wrong with the way I am doing the comparison? Why does it think the
two strings are not identical, even from the first character?
--
Stan Goodman
Qiryat Tiv'on
Israel
"When your enemy falls, do not rejoice." -- Proverbs 24:17
- Posted by Stan Goodman on November 7th, 2004
On Sun, 7 Nov 2004 17:10:50 UTC, "Stan Goodman" <SPAM_FOILER@hashkedim.com>
opined:
The value of the variable "ConnectType" was set as an environment variable.
"Static" has six characters. The length of the variable "ConnectType" above,
turns out to be seven characters, although you can't see that on the screen.
After removing the spurious first character, it works correctly.
Bug or not, it looks irrational to me.
--
Stan Goodman
Qiryat Tiv'on
Israel
"When your enemy falls, do not rejoice." -- Proverbs 24:17
- Posted by jmm-list-gn on November 8th, 2004
Stan Goodman wrote:
there is a space after the equal sign, it is included in the variable.
--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
- Posted by Stan Goodman on November 8th, 2004
On Mon, 8 Nov 2004 04:26:51 UTC, jmm-list-gn
<jmm-list.AXSPAMGN@sohnen-moe.com> opined:
Of course. Of the three versions of config.sys that I had to create for what
I am doing, the only one I can test at the moment had to be the one with the
extra space.
Sometimes I wonder about myself.
--
Stan Goodman
Qiryat Tiv'on
Israel
"When your enemy falls, do not rejoice." -- Proverbs 24:17