rcluncomp had trouble with multiple whitespace in file names because it used echo for output. Replaced by here document. Closes issue #27

This commit is contained in:
Jean-Francois Dockes 2010-09-30 15:23:52 +02:00
parent 557d65f777
commit 13d550a40e
3 changed files with 22 additions and 2 deletions

View File

@ -30,5 +30,6 @@ case "$sinfile" in
;;
esac
#echo "rcluncomp: $uncompressed" 1>&2
echo $uncompressed
cat <<EOF
$uncompressed
EOF

15
tests/compressed/compressed.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
topdir=`dirname $0`/..
. $topdir/shared.sh
initvariables $0
(
recollq ASPCSPCCONTENT
recollq BSPCSPCCONTENT
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
checkresult

View File

@ -0,0 +1,4 @@
1 results
text/plain [file:///home/dockes/projets/fulltext/testrecoll/compressed/a b.txt.gz] [a b.txt.gz] 43 bytes
1 results
text/plain [file:///home/dockes/projets/fulltext/testrecoll/compressed/b b.txt.bz2] [b b.txt.bz2] 51 bytes