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
This commit is contained in:
Adrien Destugues 2010-08-13 12:42:46 +00:00
parent 22727b149d
commit 8ac6b88687

View File

@ -10,6 +10,7 @@ launch() {
toLaunch="$1"
shift
toWaitFor="$1"
(( $# )) && shift
if [ -f "/boot/$toLaunch" ]
then
"/boot/$toLaunch" $* &