[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Avoid false word splitting on RHS of 'local var='

From: Ralf Wildenhues
Subject: Avoid false word splitting on RHS of 'local var='
Date: Mon, 27 Sep 2010 21:17:06 +0200
User-agent: Mutt/1.5.20 (2010-08-04)

Hello Karl, bug-texinfo readers,

This is <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598239>:
dash word-splits the right hand side of a 'local' variable assignment,
which makes texi2dvi fail without the patch below if dash is is /bin/sh.


2010-09-27  Ralf Wildenhues  <address@hidden>

        * util/texi2dvi (run_index): Separate 'local' statement from
        variable initialization, so dash won't word-split the
        right hand side.

Index: util/texi2dvi
RCS file: /cvsroot/texinfo/texinfo/util/texi2dvi,v
retrieving revision 1.160
diff -u -p -r1.160 texi2dvi
--- util/texi2dvi       6 Sep 2010 22:11:06 -0000       1.160
+++ util/texi2dvi       27 Sep 2010 19:11:07 -0000
@@ -1108,7 +1108,8 @@ run_bibtex ()
 # won't know that if the index files are out of date or nonexistent.
 run_index ()
-  local index_files=`generated_files_get $in_noext index_file_p`
+  local index_files
+  index_files=`generated_files_get $in_noext index_file_p`
   test -n "$index_files" ||
     return 0

reply via email to

[Prev in Thread] Current Thread [Next in Thread]