[Info-vax] DCL and scripting

Stephen Hoffman seaohveh at hoffmanlabs.invalid
Tue Dec 11 19:39:24 EST 2018


On 2018-12-11 19:39:41 +0000, John Reagan said:

> Besides the "match"/"nomatch" result, I assume you'd also like 
> capturing syntax like you see in Perl regex strings?  (aka \1 and $1)
> The biggest obstacle in shoving a regex into the middle of DCL is 
> making sure the license is suitable.  For instance, we can't/won't put 
> a piece of GPL code into DCL.EXE.

Search and replace.  Likely POSIX regex syntax.

VSI already has regex code with search and replace capabilities within 
LSEDIT and/or TPU.  That assuming sufficient rights to reuse parts of 
DECset, which I assume y'all have.

As for alternative sources, the BSDs have a wealth of Apache and 
BSD/MIT-licensed app code.

https://lists.freebsd.org/pipermail/freebsd-announce/2018-December/001856.html

And...

NetBSD has a regular expression implementation in sed, and that 
licensing is very likely compatible with your requirements:
http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/sed/?only_with_tag=MAIN 
 (Hi, Myrkraverk!)
http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/sed/process.c?rev=1.52&content-type=text/x-cvsweb-markup&only_with_tag=MAIN 
etc.

-- 
Pure Personal Opinion | HoffmanLabs LLC 




More information about the Info-vax mailing list