o.'a'      = 'alt'

is NOT a valid way to set a compound variable.  That syntax ends up being
an expression that evaluates to the value "0", which then gets issued as a
shell command.  Run that using Trace I and you can see exactly how those
instructions are getting evaluated.

To set a compound variable using a literal string tail, you need to use the
square bracket syntax:

  o.['a'] = 'alt'

Rick


On Sun, Apr 27, 2014 at 7:57 PM, J. Leslie Turriff <
jlturr...@centurylink.net> wrote:

>         I'm getting a strange result when I try to initialize some stem
> variables
> whose stem names start with "o".  I don't understand how the shell is
> getting
> its fingers into an ordinary rexx assignment statement?
>         My system is OpenSuSE 13.1 on x86_64 hardware.
>         I ran across this while trying to set various opt.X variables, so
> I tried
> changing opt. to optn..  When the problem persisted, I created a little
> testcase program.  Here's what I have:
>
> |  18:42:08,leslie@pinto
> | ~/bin/rexx
> | $rexx -v
> | Open Object Rexx Version 4.2.0
> | Build date: Dec 28 2013
> | Addressing Mode: 64
> |
> | Copyright (c) IBM Corporation 1995, 2004.
> | Copyright (c) RexxLA 2005-2013.
> | All Rights Reserved.
> | This program and the accompanying materials are made available under
> | the terms of the Common Public License v1.0 which accompanies this
> | distribution or at
> | http://www.oorexx.org/license.html
> |
> |  18:42:32,leslie@pinto
> | ~/bin/rexx
> | $testcase
> |      3 *-* o.         = ''
> |        >>>   ""
> |      4 *-* op.        = ''
> |        >>>   ""
> |      5 *-* opt.       = ''
> |        >>>   ""
> |      6 *-* opti.      = ''
> |        >>>   ""
> |      7 *-* optio.     = ''
> |        >>>   ""
> |      8 *-* option.    = ''
> |        >>>   ""
> |      9 *-* optn.      = ''
> |        >>>   ""
> |     10 *-* o.'a'      = 'alt'
> |        >>>   "0"
> | sh: /home/leslie/bin/rexx/0: Permission denied
> |        +++   "RC(126)"
> |     11 *-* op.'B'     = 'amb'
> |        >>>   "0"
> | sh: /home/leslie/bin/rexx/0: Permission denied
> |        +++   "RC(126)"
> |     12 *-* opt.'c'    = 'cap'
> |        >>>   "0"
> | sh: /home/leslie/bin/rexx/0: Permission denied
> |        +++   "RC(126)"
> |     13 *-* opti.'C'   = 'col'
> |        >>>   "0"
> | sh: /home/leslie/bin/rexx/0: Permission denied
> |        +++   "RC(126)"
> |     14 *-* optio.'n'  = 'num'
> |        >>>   "0"
> | sh: /home/leslie/bin/rexx/0: Permission denied
> |        +++   "RC(126)"
> |     15 *-* option.'H' = 'sha'
> |        >>>   "0"
> | sh: /home/leslie/bin/rexx/0: Permission denied
> |        +++   "RC(126)"
> |     16 *-* optn.'s'   = 'sec'
> |        >>>   "0"
> | sh: /home/leslie/bin/rexx/0: Permission denied
> |        +++   "RC(126)"
> |     17 *-* exit
> |
> |  18:42:41,leslie@pinto
> | ~/bin/rexx
> | $cat testcase
> | #!/usr/bin/rexx
> |   trace rnormal
> |   o.         = ''
> |   op.        = ''
> |   opt.       = ''
> |   opti.      = ''
> |   optio.     = ''
> |   option.    = ''
> |   optn.      = ''
> |   o.'a'      = 'alt'
> |   op.'B'     = 'amb'
> |   opt.'c'    = 'cap'
> |   opti.'C'   = 'col'
> |   optio.'n'  = 'num'
> |   option.'H' = 'sha'
> |   optn.'s'   = 'sec'
> | exit
> |  18:42:54,leslie@pinto
> | ~/bin/rexx
>
>         Can anyone explain what's happening here?
>
> Leslie
>
> btw
>         There is an empty file 0 in my bin/rexx/ directory; some arcane
> subsystem on
> my machine creates one in every directory, so if I delete it it's back the
> next day; so that's where the error message gets it, but how is bash
> getting
> invoked during a Rexx assignment?
>
> | 18:45:12,leslie@pinto
> | ~/bin/rexx
> | $ls -l
> | total 1276
> | -rw-r--r-- 1 leslie users     0 2014-04-11 18:56:20 0
> | :
>
>
> ------------------------------------------------------------------------------
> Start Your Social Network Today - Download eXo Platform
> Build your Enterprise Intranet with eXo Platform Software
> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
> Get Started Now And Turn Your Intranet Into A Collaboration Platform
> http://p.sf.net/sfu/ExoPlatform
> _______________________________________________
> Oorexx-users mailing list
> Oorexx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to