Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2018 13:59:08 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r485659 - head/devel/tig/files
Message-ID:  <201811231359.wANDx8dS045325@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Fri Nov 23 13:59:08 2018
New Revision: 485659
URL: https://svnweb.freebsd.org/changeset/ports/485659

Log:
  devel/tig: Fix a GNUism in tools/make-builtin-config.sh
  
  PR:		233423
  Reported by:	kevans

Added:
  head/devel/tig/files/
  head/devel/tig/files/patch-tools_make-builtin-config.sh   (contents, props changed)

Added: head/devel/tig/files/patch-tools_make-builtin-config.sh
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/tig/files/patch-tools_make-builtin-config.sh	Fri Nov 23 13:59:08 2018	(r485659)
@@ -0,0 +1,15 @@
+sed: 1: "s/\s*#.*//": RE error: trailing backslash (\)
+
+cf. PR 229925
+
+--- tools/make-builtin-config.sh.orig	2018-11-23 06:50:40 UTC
++++ tools/make-builtin-config.sh
+@@ -21,7 +21,7 @@ TIGRC="${1:-tigrc}"
+ 
+ read_tigrc() {
+ 	if test -z "$NO_BUILTIN_TIGRC"; then
+-		sed 's/\s*#.*//' "$TIGRC" | sed 's,\\,\\\\\\\\,g' | sed 's,",\\\\",g' | sed 's/	\+/	/g'
++		sed 's/[[:space:]]*#.*//' "$TIGRC" | sed 's,\\,\\\\\\\\,g' | sed 's,",\\\\",g' | sed 's/	\+/	/g'
+ 	else
+ 		echo '#'
+ 	fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811231359.wANDx8dS045325>