From: J L. T. <jlt...@ma...> - 2025-02-14 23:31:38
|
Inside a pipeline, the ? is the default separator for multi-stage streams. It can be overridden with the end option. Leslie On 2023-02-26 11:24:21 Jeff Hennick wrote: > In building a new HELP 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 HELP in CMS. Here are the first > few lines traced. First with the character > which is processed all > right. But with the character ? , it never gets through. > > PS C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes> pipe "ahelp >" > --- ahelp.nrx [Thread-1,njPipes] > 25 *=* method run() > 26 *=* data = Rexx "" > > >v> data "" > > 28 *=* parse arg() stage_to_help > > >v> stage_to_help ">" > > PS C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes> pipe "ahelp ?" > --- ahelp.nrx [Thread-1,njPipes] > 25 *=* method run() > 26 *=* data = Rexx "" > > >v> data "" > > 28 *=* parse arg() stage_to_help > > >v> stage_to_help "" > > Some exploration with raw NetRexx shows the Shell does not like passing >, > but all is right with?: PS > C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes> type toast.nrx /* > This wishes you the best of health. */ > class toast > method main(argwords=String[]) static > arg=Rexx(argwords) > say 'Cheers!' arg > > PS C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes> java toast > Cheers! > PS C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes> java toast xyz > Cheers! xyz > PS C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes> java toast > > At line:1 char:13 > + java toast > > + ~ > Missing file specification after redirection operator. > + CategoryInfo : ParserError: (:) [], > ParentContainsErrorRecordEx ception > + FullyQualifiedErrorId : MissingFileSpecification > > PS C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes> java toast ? > Cheers! ? > > So, NetRexx alone is not "eating" the "?" parameter, it must be Pipelines > that is. Is this a feature of Pipelines that I have missed, or a bug? > Anyone's help would be appreciated. > Jeff Hennick |