]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
ylwrap: use proper quoting inside a `...` substitution
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 14 Jul 2012 09:07:34 +0000 (11:07 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Sat, 14 Jul 2012 14:59:33 +0000 (16:59 +0200)
* lib/ylwrap ($target): Here, when redefining this to a temporary file.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/ylwrap

index 73dba2b1ac93bfc81d6060b484bee9b7f284c91b..7befa46de6feea3433c364af2061ba554bb3d9e4 100755 (executable)
@@ -190,7 +190,7 @@ if test $ret -eq 0; then
       # compare them to existing versions.
       if test $from != $parser; then
         realtarget="$target"
-        target=tmp-`printf '%s\n' "$target" | sed s/.*[\\/]//g`
+        target=tmp-`printf '%s\n' "$target" | sed 's|.*[\\/]||g'`
       fi
 
       # Munge "#line" or "#" directives.  Don't let the resulting