]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
fs/cpio/init: preserve arguments
authorGaël PORTAY <gael.portay@savoirfairelinux.com>
Wed, 21 Feb 2018 21:02:16 +0000 (16:02 -0500)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 26 Feb 2018 19:49:40 +0000 (20:49 +0100)
commit4fa524144bd2019f98159f21802de08be7b5bea0
tree83ddee908d0e37726e52aedd81804911e73ded3c
parent1e7ee5a686dc74f18242a9c07623cf12065505c1
fs/cpio/init: preserve arguments

Use "$@" instead of $* to preserve arguments containing spaces.

The shell expands "$@" as "$1" "$2" "$3"... while it expands $@ as $1 $2
$3. With the second form, we loses spaces in positional parameters.

Signed-off-by: Gaël PORTAY <gael.portay@savoirfairelinux.com>
Reviewed-by: Adrian Perez de Castro <aperez@igalia.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
fs/cpio/init