]> git.tuebingen.mpg.de Git - paraslash.git/commit
command_util: Fix quoting in template_loop().
authorAndre Noll <maan@systemlinux.org>
Sun, 30 Oct 2011 11:54:32 +0000 (12:54 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 20 Nov 2011 14:08:41 +0000 (15:08 +0100)
commitefc124e295a4df44dd4d60c856e3a3d87f645e96
treef5e072efa8a41d46cc6fba8864eb7df0395adfcf
parent3b447b02e2d74d596ecf6f5f764bf847653d407c
command_util: Fix quoting in template_loop().

Without this additional quoting, the command usage string is incorrect
in case the template contains square brackets. For example, the usage
of the lsblob commands was printed as

Usage: lspl [-i] [-l] [-r] t

rather than the desired

Usage: lspl [-i] [-l] [-r] [pattern]

because the command "echo [pattern]" prints "t" since there is a
subdirectory called "t" in the source tree.
command_util.sh