Author: pulkomandy Date: 2010-08-13 14:42:46 +0200 (Fri, 13 Aug 2010) New Revision: 38084 Changeset: http://dev.haiku-os.org/changeset/38084 Modified: haiku/trunk/data/system/boot/Bootscript Log: Only shift if there are arguments left in the list. Previous fix invalidated by Axel and hint to the proper solution given by mksh developper. Modified: haiku/trunk/data/system/boot/Bootscript =================================================================== --- haiku/trunk/data/system/boot/Bootscript 2010-08-13 12:31:36 UTC (rev 38083) +++ haiku/trunk/data/system/boot/Bootscript 2010-08-13 12:42:46 UTC (rev 38084) @@ -10,6 +10,7 @@ toLaunch="$1" shift toWaitFor="$1" + (( $# )) && shift if [ -f "/boot/$toLaunch" ] then "/boot/$toLaunch" $* &