Avoid warning thrown by old bash

Jeff Smith whydoubt at yahoo.com
Sat Feb 26 10:42:15 CST 2005


This avoids a warning that occurs when I run tools/wineinstall
under bash 1.14.7.  Bash 3.00.14 does not give the warning, and its
behavior does not change with this patch.

ChangeLog: Avoids a shift warning thrown by older versions of bash.

Index: tools/wineinstall
===================================================================
RCS file: /home/wine/wine/tools/wineinstall,v
retrieving revision 1.71
diff -u -r1.71 wineinstall
--- tools/wineinstall   23 Feb 2005 20:57:14 -0000      1.71
+++ tools/wineinstall   25 Feb 2005 22:32:40 -0000
@@ -59,7 +59,7 @@
   shift 2
   echo
   local LINE="$1"
-  while shift
+  while [ $# -gt 0 ] && shift
   do {
     echo "$LINE"
     LINE="$1"



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250



More information about the wine-patches mailing list