From 4720c4688fbede05c6fc7a581cc12d02e3f85519 Mon Sep 17 00:00:00 2001 From: William Kendrick Date: Sun, 13 Aug 2006 01:14:35 +0000 Subject: [PATCH] Spaces in filenames were not working in 'tuxpaint-import.sh'. (Fixes bug #1527884) --- docs/CHANGES.txt | 6 +++++- src/tuxpaint-import.sh | 6 ++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index ac7261a4e..b03fed7a9 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -173,7 +173,7 @@ $Id$ * Bug Fixes: ---------- - * Tux Paint's scalable icon (tuxpaint-icon.svg) caused Gnome panel to + * tux Paint's scalable icon (tuxpaint-icon.svg) caused Gnome panel to go wild (due to "libarts" bug?). Changed a vector value which apparently fixes it (and caused no noticable changes to the icon). @@ -194,6 +194,10 @@ $Id$ * Improved handling of scroll button state to prevent it from getting into an infinite loop. (Fixes bug #1396706) + * Spaces in filenames were not working in 'tuxpaint-import.sh'. + (Fixes bug #1527884) + James Le Cuirot + 2005.November.26 (0.9.15b) diff --git a/src/tuxpaint-import.sh b/src/tuxpaint-import.sh index e7a575bcc..80f402322 100755 --- a/src/tuxpaint-import.sh +++ b/src/tuxpaint-import.sh @@ -25,7 +25,7 @@ # (See COPYING.txt) -# September 21, 2002 - February 17, 2006 +# September 21, 2002 - August 12, 2006 SAVEDIR=$HOME/.tuxpaint @@ -141,8 +141,10 @@ fi # For each picture list... -for i in $* +for x in $(seq 1 $#) do + i="${!x}" + if [ -e $i ]; then # Determine a filename for it: NEWFILENAME=`date "+%Y%m%d%H%M%S"`