From: Yee Cheng Chin Date: Fri, 28 Mar 2025 18:09:13 +0000 (+0100) Subject: runtime(doc): non-portable sed regex in Makefile for pi_netrw.txt rule X-Git-Tag: v9.1.1253~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5aad6cca534fe3c4e0f3105f172d43d0852ea27;p=thirdparty%2Fvim.git 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 --- 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: