On Thu, 10 Apr 2025 17:06:27 +0000, Farley, Peter wrote:
>    ...
>IMHO no “programmer option” is needed – If you code a BRE as the RE then 
>that’s what you’ll execute, if you code an ERE then that is what you’ll 
>execute.  ISTM that it's up to the underlying RE compiler to determine the 
>syntax in use.
> 
It's impossible for the compiler to make that distinction.  For that reason,
utilities such as
sed: 
<https://www.ibm.com/docs/sv/zos/3.1.0?topic=descriptions-sed-start-sed-noninteractive-stream-editor>
-E
    Uses extended regular expressions. Normally, sed uses basic regular 
expressions.

and grep: 
<https://www.ibm.com/docs/en/zos/3.1.0?topic=descriptions-grep-search-file-specified-pattern>
-E
    Matches by using extended regular expressions (causes grep to behave like 
egrep).

have the "-E" option to indicate the programmer's intent.  DFSORT needs a 
similar option.

-- 
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to