Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Deprecation of egrep



Jun T wrote on Mon, 12 Sep 2022 07:30 +00:00:
> +++ b/Test/ztst.zsh
> @@ -94,6 +94,15 @@ tail() {
> +egrep () {
⋮
> +    [[ $line = *(${~1})* ]] && print $line

May I suggest naming the function something else?  «egrep foo»
should interpret foo as an extended regular expression; this function
doesn't.

As to propagating configure's EGREP to ztst.zsh: propagating a single
variable should be straightforward enough, but what about cross builds?
configure runs on the build host and the test suite necessarily runs on
the target host.

Cheers,

Daniel




Messages sorted by: Reverse Date, Date, Thread, Author