From ffa4c62a38c00b63cf104870a20e4883270be7a2 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Fri, 23 Nov 2007 00:06:57 +0100 Subject: [PATCH] * lib/ylwrap: Cope with white space in `PROGRAM' and `pwd`. --- ChangeLog | 2 ++ lib/ylwrap | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 29a715965..2ff734882 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2007-11-22 Ralf Wildenhues + * lib/ylwrap: Cope with white space in `PROGRAM' and `pwd`. + * lib/am/tags.am (ID, TAGS, CTAGS): Make awk scripts portable again. (CTAGS): Drop unneeded variable `here'. diff --git a/lib/ylwrap b/lib/ylwrap index 5cee67e4f..7fe7c3f76 100755 --- a/lib/ylwrap +++ b/lib/ylwrap @@ -1,10 +1,10 @@ #! /bin/sh # ylwrap - wrapper for lex/yacc invocations. -scriptversion=2005-05-14.22 +scriptversion=2007-11-22.22 -# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. +# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005, +# 2007 Free Software Foundation, Inc. # # Written by Tom Tromey . # @@ -101,14 +101,14 @@ esac # FIXME: add hostname here for parallel makes that run commands on # other machines. But that might take us over the 14-char limit. dirname=ylwrap$$ -trap "cd `pwd`; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15 +trap "cd '`pwd`'; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15 mkdir $dirname || exit 1 cd $dirname case $# in - 0) $prog "$input" ;; - *) $prog "$@" "$input" ;; + 0) "$prog" "$input" ;; + *) "$prog" "$@" "$input" ;; esac ret=$? -- 2.47.2