[rhmessaging-commits] rhmessaging commits: r3868 - store/trunk/cpp/tests/jrnl.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Mar 11 09:45:04 EST 2010


Author: kpvdr
Date: 2010-03-11 09:45:03 -0500 (Thu, 11 Mar 2010)
New Revision: 3868

Modified:
   store/trunk/cpp/tests/jrnl/jhexdump
Log:
Minor bugfix for the jhexdump utility - did not handle spaces in paths correctly

Modified: store/trunk/cpp/tests/jrnl/jhexdump
===================================================================
--- store/trunk/cpp/tests/jrnl/jhexdump	2010-03-10 20:21:21 UTC (rev 3867)
+++ store/trunk/cpp/tests/jrnl/jhexdump	2010-03-11 14:45:03 UTC (rev 3868)
@@ -21,7 +21,7 @@
 #
 # The GNU Lesser General Public License is available in the file COPYING.
 
-if [ -z $1 ]; then
+if [ -z "$1" ]; then
     echo "No directory specified."
     exit
 fi
@@ -31,11 +31,11 @@
 
 rm -f j*.txt
 
-if [ -d ${JDIR} ]; then
+if [ -d "${JDIR}" ]; then
     n=0
-    for f in ${JDIR}/*.jdat; do
+    for f in "${JDIR}"/*.jdat; do
         echo "$f -> j$n.txt"
-        hexdump -C $f > j$n.txt
+        hexdump -C "$f" > j$n.txt
         (( n += 1 ))
     done
 else



More information about the rhmessaging-commits mailing list