From c5aad6cca534fe3c4e0f3105f172d43d0852ea27 Mon Sep 17 00:00:00 2001 From: Yee Cheng Chin Date: Fri, 28 Mar 2025 19:09:13 +0100 Subject: [PATCH] runtime(doc): non-portable sed regex in Makefile for pi_netrw.txt rule Previously it was using '\0' in sed which is non-portable and does not work in macOS. Fix this by using the '$' (end-of-line) regex atom (which needs to be doubled in the Makefile) to append at the end instead. An alternative would have been to use '&' which is the more portable version of '\0'. closes: #16996 Signed-off-by: Yee Cheng Chin Signed-off-by: Christian Brabandt --- runtime/doc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/doc/Makefile b/runtime/doc/Makefile index 0f142a3722..01b2c3e83f 100644 --- a/runtime/doc/Makefile +++ b/runtime/doc/Makefile @@ -143,7 +143,7 @@ os_win32.txt: pi_netrw.txt: ../pack/dist/opt/netrw/doc/netrw.txt cp ../pack/dist/opt/netrw/doc/netrw.txt $@.tmp - sed -e '1s/\(.*\)/\0 *pi_netrw.txt*/' $@.tmp > $@ && \ + sed -e '1s/$$/ *pi_netrw.txt*/' $@.tmp > $@ && \ rm -f $@.tmp vietnamese.txt: