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 73dba2b..7befa46 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