From: Keller, Jacob E Date: Mon, 02 Jun 2025 23:05:20 GMT Subject: RE: [PATCH v3] completion: make sed command that generates config-list.h portable. Message-ID: In-Reply-To: <59b2a12a3f43cf078fbeaf0271b5a7cfffc9eb8f.1748903426.git.collin.funk1@gmail.com> > -----Original Message----- > From: Collin Funk > Sent: Monday, June 2, 2025 3:32 PM > To: git@vger.kernel.org > Cc: jn.avila@free.fr; Keller, Jacob E ; Collin Funk > ; Corentin Garcia ; Junio C > Hamano > Subject: [PATCH v3] completion: make sed command that generates config-list.h > portable. > > The OpenBSD 'sed' command does not support '\n' to represent newlines in > sed expressions. This leads to the follow compiler error: > > In file included from builtin/help.c:15: > ./config-list.h:282:18: error: use of undeclared identifier 'n' > "gitcvs.dbUser",n "gitcvs.dbPass", > ^ > 1 error generated. > gmake: *** [Makefile:2821: builtin/help.o] Error 1 > > We can fix this by documenting related configuration variables > one-per-line instead of listing them separated by commas. This allows us > to remove the unportable part of the sed expression in > generate-configlist.sh. > > Signed-off-by: Collin Funk > --- Reviewed-by: Jacob Keller