A related error is that -exec no longer works.  For example:

  $ xpdf -remote /home/sanjoy/sfmbook -exec goBackward &
  Error: file not found: 'goBackward'

The problem is because, in /usr/bin/xpdf, -exec is not listed as a
switch that takes a further argument.  For me the following diff fixes
that problem as well as the problem of an empty filename supplied within
single quotes.

--- /usr/bin/xpdf       2011-06-21 19:01:57.000000000 -0400
+++ /usr/bin/xpdf       2011-07-13 13:35:06.000000000 -0400
@@ -25,7 +25,7 @@
 cmd="xpdf.real"
 while [ "$#" -gt "0" ]; do
     case "$1" in
-    -z|-g|-geometry|-remote|-rgb|-papercolor|-eucjp|-t1lib|-ps|-paperw|-paperh)
+    
-z|-g|-geometry|-remote|-rgb|-papercolor|-eucjp|-t1lib|-ps|-paperw|-paperh|-exec)
        cmd="$cmd $1 $2" && shift ;;
     -title)
         title="$2" ;;
@@ -74,7 +74,11 @@
         file="$(echo $many | cut -d\' -f$n)"
     done
 elif [ "$file" = "" ] || [ "$cat" = "cat" ]; then
-    eval $cmd \'$file\' $pages
+    if [ "$file" = "" ]; then
+       eval $cmd
+    else
+       eval $cmd \'$file\' $pages
+    fi
 else
     tmp=$(tempfile -p "$(basename "$file")" -s .pdf)
     test "$cat" = "" || $cat "$file" > "$tmp"



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to