On Tue, 14 Jun 2022 23:19:01 +0100, Jeremy Nicoll  wrote:
>
>>>None of them, of course, is a programming language.
>>>
>> But Rexx certainly is, and can implement Edit macros.
>
>Yes, but it's trivial, in a macro, to convert arbitrary strings of
>characters into their hex representations and issue commands
>using the hex-format arguments.
>
Sheesh!  So you expect the programmer who wants to do a one-off regex
search to write a macro to supply the argument in hex?  Or perhaps a
general-purpose macro to convert its argument to hex and issue it back
to ISPF Edit?

FSVO "trivial".

BTW, how does one supply a regular expression to Edit in hex?

In contrast, in a POSIX shell with its escape facilities:
    605 $  pat="s/foo\\/bar/\"wombat\"/"; printf '%s\n' "$pat"
    s/foo\/bar/"wombat"/

    606 $ echo foo/bar | sed "$pat"
    "wombat"
    607 $

Recherché, but effective.

-- 
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to