From: Mike F. <va...@us...> - 2008-12-08 04:18:46
|
Update of /cvsroot/ltp/ltp/testcases/commands/unzip In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv16266/testcases/commands/unzip Modified Files: unzip_genfile.sh unzip_tests.sh Log Message: fix from Jiri Palecek: Fix syntax errors (and bashisms) in some shell files Index: unzip_tests.sh =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/commands/unzip/unzip_tests.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** unzip_tests.sh 13 Nov 2008 10:05:42 -0000 1.2 --- unzip_tests.sh 8 Dec 2008 04:18:42 -0000 1.3 *************** *** 1,2 **** --- 1,3 ---- + #! /bin/sh ################################################################################ ## ## *************** *** 38,42 **** # History: Mar 03 2003 - Created - Manoj Iyer. # - #! /bin/sh --- 39,42 ---- Index: unzip_genfile.sh =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/commands/unzip/unzip_genfile.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** unzip_genfile.sh 4 Mar 2003 05:37:41 -0000 1.1 --- unzip_genfile.sh 8 Dec 2008 04:18:42 -0000 1.2 *************** *** 1,2 **** --- 1,3 ---- + #! /bin/sh ################################################################################ ## ## *************** *** 28,32 **** # History: # Mar 03 2003 - Created - Manoj Iyer. - #! /bin/sh # Create directories and fill them with files. --- 29,32 ---- *************** *** 42,46 **** do dirname=$dirname/d.$dircnt ! mkdir -p $dirname &>/dev/null || RC=$? if [ $RC -ne 0 ] then --- 42,46 ---- do dirname=$dirname/d.$dircnt ! mkdir -p $dirname >/dev/null 2>&1 || RC=$? if [ $RC -ne 0 ] then *************** *** 64,70 **** # Create ZIP file. ! zip -r tst_unzip_file.zip /tmp/tst_unzip.dir &>/dev/null ! rm -fr /tmp/tst_unzip.* &>/dev/null exit $RC --- 64,70 ---- # Create ZIP file. ! zip -r tst_unzip_file.zip /tmp/tst_unzip.dir >/dev/null 2>&1 ! rm -fr /tmp/tst_unzip.* >/dev/null 2>&1 exit $RC |