On 15.01.2015 10:28, Colin Guthrie wrote:
> Although if the script is in bash I'd use "if [ -d ..." rather than "if
> test -d ..." as (and bash experts (Harald?) can correct me here if I'm
> wrong) I believe [ is a bash built in (even if it is a binary in
> /usr/bin/), whereas it would have to fork out to run "test".
If you don't write "/usr/bin/test", then bash will use the builtin "test".
$ help test
test: test [expr]
Evaluate conditional expression.
so [ -d <dir> ] and test -d <dir> are basically equal.
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel