>>>>> On Wed, 01 May 2024, Florian Schmaus wrote:

> +                     local grep_expressions=()

Declare f as local, too.

> +                     # Transform texlive_core_man_pages into grep expressions
> +                     # that will be used to filter out any man page that is
> +                     # already installed by app-text/texlive-core.
> +                     for f in "${texlive_core_man_pages[@]}"; do
> +                             # Ensure that all dots are escaped so that they 
> are
> +                             # matched lilterarily. Also wrap the file in 
> '/' and '$'

"literarily"

> +                             # within the expression.
> +                             grep_expressions+=(-e "/${f//./\\.}$")

Hm, bash seems to be o.k. with this final lone dollar sign, but maybe it
would be cleaner to escape it as "\$".

> +                     done

Attachment: signature.asc
Description: PGP signature

Reply via email to