From: Jeff H. <Je...@Je...> - 2023-02-26 17:24:36
|
<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body> <p>In building a new <b>HELP</b> stage, and wanting to handle all the stage names and their synonyms, I have run into a problem with an argument of just the question mark: "?", which is a synonym for <b>HELP</b> in CMS.</p> <p>Here are the first few lines traced. First with the character <b>></b> which is processed all right. But with the character <b>?</b> , it never gets through.<br> </p> <div style="display:inline-block;white-space:pre;background-color:#012456;font-family:'Cascadia Code',monospace;font-size:10pt;padding:4px;"><span style="color:#D3D7CF;background-color:#012456;">PS C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes> </span><span style="color:#FCE94F;background-color:#012456;">pipe </span><span style="color:#06989A;background-color:#012456;">"ahelp >" </span><span style="color:#D3D7CF;background-color:#012456;"> --- ahelp.nrx [Thread-1,njPipes] 25 *=* method run() 26 *=* data = Rexx "" >v> data "" 28 *=* parse arg() stage_to_help >v> stage_to_help ">"</span></div> <p></p> <div style="display:inline-block;white-space:pre;background-color:#012456;font-family:'Cascadia Code',monospace;font-size:10pt;padding:4px;"><span style="color:#D3D7CF;background-color:#012456;">PS C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes> </span><span style="color:#FCE94F;background-color:#012456;">pipe </span><span style="color:#06989A;background-color:#012456;">"ahelp ?" </span><span style="color:#D3D7CF;background-color:#012456;"> --- ahelp.nrx [Thread-1,njPipes] 25 *=* method run() 26 *=* data = Rexx "" >v> data "" 28 *=* parse arg() stage_to_help >v> stage_to_help ""</span></div> <p></p> <p>Some exploration with raw NetRexx shows the Shell does not like passing <b>></b>, but all is right with<b>?</b>:</p> <div style="display:inline-block;white-space:pre;background-color:#012456;font-family:'Cascadia Code',monospace;font-size:10pt;padding:4px;"><span style="color:#D3D7CF;background-color:#012456;">PS C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes> </span><span style="color:#FCE94F;background-color:#012456;">type </span><span style="color:#D3D7CF;background-color:#012456;">toast.nrx /* This wishes you the best of health. */ class toast method main(argwords=String[]) static arg=Rexx(argwords) say 'Cheers!' arg</span></div> <p></p> <div style="display:inline-block;white-space:pre;background-color:#012456;font-family:'Cascadia Code',monospace;font-size:10pt;padding:4px;"><span style="color:#D3D7CF;background-color:#012456;">PS C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes> </span><span style="color:#FCE94F;background-color:#012456;">java </span><span style="color:#D3D7CF;background-color:#012456;">toast Cheers! PS C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes> </span><span style="color:#FCE94F;background-color:#012456;">java </span><span style="color:#D3D7CF;background-color:#012456;">toast xyz Cheers! xyz PS C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes</span><span style="color:#EF2929;background-color:#012456;">> </span><span style="color:#FCE94F;background-color:#012456;">java </span><span style="color:#D3D7CF;background-color:#012456;">toast > </span><span style="color:#EF2929;background-color:#012456;">At line:1 char:13 + java toast > + ~ Missing file specification after redirection operator. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx ception + FullyQualifiedErrorId : MissingFileSpecification </span><span style="color:#D3D7CF;background-color:#012456;">PS C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes> </span><span style="color:#FCE94F;background-color:#012456;">java </span><span style="color:#D3D7CF;background-color:#012456;">toast ? Cheers! ?</span></div> <p></p> <p>So, NetRexx alone is not "eating" the "?" parameter, it must be Pipelines that is.</p> <p>Is this a feature of Pipelines that I have missed, or a bug?</p> <p>Anyone's help would be appreciated.</p> <p>Jeff Hennick<br> </p> <p><br> </p> <p><br> </p> <p><br> </p> </body> </html> |