What I did most of the time was convert to hex 'PIPE literal X' || c2x(blah) '|......
Kris Buelens, --- VM/VSE consultant, Belgium --- ----------------------------------------------------------------------- Op wo 17 feb. 2021 om 00:26 schreef Glenn Knickerbocker <n...@bestweb.net>: > This is a frequent puzzle I shake my head at solving a different way > every time: I need to pass a string to a pipeline stage, and it might > have pipeline characters in it, and it might be null, it might or might > not need delimiting, and it might or might not be a required argument. > > Optional delimited string: > If str ¬== '' Then str = 'x' || str > 'PIPE' blah '| strliteral' str '|' etc. > > Required delimited string: > If str == '' Then str = "''" > Else str = 'x' || str > 'PIPE' blah '| specs' str etc. > > Literal string: > 'PIPE var str | escape ,||/, | str' > 'PIPE (end /)' blah '| literal' str'|' etc. > > When I'm just trying to pass the argument intact from an exec to a > pipeline or from one stage to another, it's particularly unsatisfying to > wind up sticking it in a variable first to do work on it. Have I > overlooked something to make all this unnecessary? > > ¬R >