From 4d27453ce1fae61e4ef4a5e2f21122515e4f0260 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Thu, 18 Oct 2012 16:55:25 +0200 Subject: [PATCH] depcomp: rewrite a sed invocation for less quoting * lib/depcomp (dashmstdout): Here. Signed-off-by: Stefano Lattarini --- lib/depcomp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/depcomp b/lib/depcomp index 221a80ceb..8cd39b06c 100755 --- a/lib/depcomp +++ b/lib/depcomp @@ -627,7 +627,7 @@ dashmstdout) # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | - sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile" + sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this sed invocation -- 2.47.2