--- tuxpaint-0.9.21.orig/src/tuxpaint-import.sh
+++ tuxpaint-0.9.21/src/tuxpaint-import.sh
@@ -143,7 +143,7 @@
 # For each picture list...
 for x in $(seq 1 $#)
 do
-  i="${!x}"
+  i=$(eval echo \$\{$x\})
 
   if [ -e "$i" ]; then
     # Determine a filename for it:
