[tex-k] Bug in mktexlsr

luigi scarso luigi.scarso at gmail.com
Tue Jun 28 00:21:14 CEST 2011


At line 95,
if test ! -d "$1" is true,
without  shift before continue the input args is not consumed and the
condition is again evaluated as true,
resulting into an endless loop.
Fix: add  shift before continue.


*** mktexlsr.orig    2011-06-27 23:01:48.000000000 +0200
--- mktexlsr    2011-06-28 00:12:13.000000000 +0200
***************
*** 95,100 ****
--- 95,101 ----
    else
      if test ! -d "$1"; then
        echo "$progname: $1: not a directory, skipping." >&2
+       shift
        continue
      fi
      # By saving the argument in a file, we can later get it back while

-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex-k/attachments/20110628/f54e02ed/attachment.html>


More information about the tex-k mailing list