From 8ac6b88687858ea23ce74398dfef2a06bb72bfe9 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Fri, 13 Aug 2010 12:42:46 +0000 Subject: [PATCH] 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. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38084 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- data/system/boot/Bootscript | 1 + 1 file changed, 1 insertion(+) diff --git a/data/system/boot/Bootscript b/data/system/boot/Bootscript index 0f71e88a10..5d8a97aa17 100644 --- a/data/system/boot/Bootscript +++ b/data/system/boot/Bootscript @@ -10,6 +10,7 @@ launch() { toLaunch="$1" shift toWaitFor="$1" + (( $# )) && shift if [ -f "/boot/$toLaunch" ] then "/boot/$toLaunch" $* &