Make splitsep work as documented with less vars than fields
authorWill Woods <wwoods@redhat.com>
Thu, 5 Apr 2012 17:01:38 +0000 (13:01 -0400)
committerHarald Hoyer <harald@redhat.com>
Mon, 16 Apr 2012 09:53:04 +0000 (11:53 +0200)
commitf7cadaa843498c4b986f8a030fab39002ad108b6
treebcb4c1b40fd22a4a15068b8272f20d21c43d204d
parente173f0b384f699c2519db879f3f562b1f6676d8d
Make splitsep work as documented with less vars than fields

According to its comment in dracut-lib.sh:

    splitsep ":" "one:all:the:rest" one two

should set two="all:the:rest". But there's no check to see if the
current field is the last field, so it just gets "all".
modules.d/99base/dracut-lib.sh