THE-3.3RC2 macro with blank at end gives 'command not found'
Brought to you by:
rexx
xthe built from THE-3.2RC2 sources gives an error message (for example, with a macro named mast); enter "macro mast ". This message is given, "sh: mast: command not found".
Regina is at REXX-Regina_3.7(MT) 5.00 14 Oct 2012.
This problem appears with ooRexx as well. :-)
I'm willing to test any changes or run any test cases needed.
Still broken with new the.
Hmm, works for me using your profile. Is mast.the in THE_MACRO_PATH? QUERY MACROPATH shows where THE looks for macros if no path specified.
The mast macro is in the macropath. I frequently write singular macros and then plural forms, often by just adding an "s" to the end and wrapping "macro ld 'somestring' macro name" with args at the end. Adding the args at the end causes these to fail presumably because a blank is added after the macro name. I can make ANY macro fail like this by typing it's name then hitting the space bar.
I'm confused now with the failing behaviour. The initial bug report implied that the problem was with the following at the command prompt:
[=====> macro mast ]
where a trailing space after the macro name causes the error. In the above comment there is an implication that the problem is with trailing spaces after arguments which are then processed as a macro name. The example I showed in this comment works for me. Can you please confirm that this example works for you, or explain the bug in more detail.
When I type in at the cmdline, "macro mast " I get Error 0011: File not found in THE_MACRO_PATH: mast
Without the blank at the end, the macro succeeds.
I apologize for the confusion.
I get the same error with my RC2 on W7. Iirc, there are several tickets
concerning handling blanks... common denominator?
RC4: If I type 'macro view ', it works, but if I type 'view ' I get
'Macro not found'.
Running rc4: This problem seems to still exist. Source is from the repository, version 8.