On Sep 29, 2013 6:40 AM, "Jan Engelhardt" <jeng...@inai.de> wrote: > > On Thursday 2013-09-26 00:38, Tom Gundersen wrote: > > >+if [[ `basename $0` == 'installkernel' ]]; then > > Lack of quoting - bad bad bad. > Why not just write ${0##*/} ?
Quoting doesn't matter on the lhs here. Agree with the idiom in place of using basename, though. > _______________________________________________ > systemd-devel mailing list > systemd-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/systemd-devel
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel