[tlbuild] linked scripts when script names only differ by their extensions

Robert Alessi alessi at robertalessi.net
Tue Mar 19 12:23:18 CET 2024


On Tue, Mar 19, 2024 at 11:40:52AM +0100, Robert Alessi wrote:
> 
> In source/texk/texlive/linked_scripts/Makefile.am, I have:
> 
>    329		   echo "$$s" | grep 'listings-ext.sh\|memoize-.*\.' >/dev/null \
>    330		   || target=`echo $$target | sed 's,\.[^/]*$$,,'`; \
> 
> BUT (!) in GNU grep there is no functional difference between basic
> and extended grep unlike in BSD where the two are distinct.  So in
> OpenBSD line 329 fails in every instance and line 330 is always
> executed.
> 
> This might affect other BSDs.
> 
> "grep -E" should solve this issue.

Rather:

	echo "$$s" | grep -E 'listings-ext\.sh|memoize-.*' >/dev/null \ 

At least I just ran this command on my system and it did the links to
perfection.

-- R

> Besides, why \. after memoize-.* ?
> 
> Thanks,
> 
> -- robert


More information about the tlbuild mailing list.