# rc-update -u * Caching service dependencies ... /lib64/rc/sh/gendepends.sh: 190: /etc/init.d/libvirt-guests: Syntax error: redirection unexpected [ ok ] # qfile -Cv /etc/init.d/libvirt-guests app-emulation/libvirt-1.2.19 (/etc/init.d/libvirt-guests) #
# ls -l /bin/sh lrwxrwxrwx 1 root root 4 Sep 18 10:02 /bin/sh -> dash
What's the point of running read twice? while read -r line do # tokenize the data read -r uri uuid <<<"${line}" ... snip ... done <"${somefile}" Why not just while read -r uri uuid do ... snip ... done <"${somefile}" ?
commit d49be3cdca529511f81110a56c428045620fc46a Author: Matthias Maier <tamiko@gentoo.org> Date: Sat Oct 3 12:59:12 2015 -0500 app-emulation/libvirt: Avoid bashism in runscript, bug 561386 Thanks to Lars Wendler and Alexander Tsoy. Gentoo-Bug: 561386 Package-Manager: portage-2.2.22