From: Lukas Nykryn Date: Thu, 9 Aug 2018 10:14:20 +0000 (+0200) Subject: dracut-functions: fix the word splitting X-Git-Tag: 049~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a762dedb60aef8f43a625e1e3c10c97664f1d74a;p=thirdparty%2Fdracut.git dracut-functions: fix the word splitting --- diff --git a/dracut-functions.sh b/dracut-functions.sh index 7c408f836..1431dd186 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -683,7 +683,7 @@ get_loaded_kernel_modules () local modules=( ) while read _module _size _used _used_by; do modules+=( "$_module" ) - done <<< $(lsmod | sed -n '1!p') + done <<< "$(lsmod | sed -n '1!p')" printf '%s\n' "${modules[@]}" | sort }