On 07/05/2020 15:56, Joerg Schilling wrote:
Kristýna Streitová <[email protected]> wrote:
We bumped into a potential bug in spax. According to the manual, spax
should support backreferences with the '-s' option:
<quoting from spax manual>
-s replstr
(...)
The format shall be:
-s /old/new/[gp]
where as in ed, old is a basic regular expression and new can
contain an ampersand, '\n' (where n is a digit) backreferences, or
subexpression matching.
(...)
</quoting from spax manual>
This is text used from the POSIX standard.
Maybe it would be better to update the manual page so that it reflects
the current feature set? This can be a little bit confusing for users.
Star did support this feature in the 1980s already when the UNIX platforms did
not even have a uniform pattern matcher in their libc.
As a result, this feature was implemented based on the pattern matcher from
Martin Richards from:
"A Compact Function for Regular Expression Pattern Matching",
Software-Practice and Experience, Vol. 9, 527-534 (1979)
There is however not yet support for () grouping and \# references.
This and the current implementation of -o in spax are not yet fully POSIX
compliant, but e.g. the ony -o implementation that is POSIX compliant is
currently in the closed source pax from Solaris/AIX/HP-UX.
Both are on my to-do list.
OK, thank you for information. Can we expect this new feature soon? Or
is it a long term plan? Thanks!
Are you planning to replace another pax imlementation by spax and need specific
features?
Actually, we replaced pax by spax in SUSE Linux Enterprise years ago.
Now we received this bug about missing functionality.
Do you know about a library implementation for this substition method?
Sorry but I don't know.
Best regards,
Kristyna Streitova
_______________________________________________
S-tar-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/s-tar-developers