Missing quotes around a variable. In this case we are only

evaluating the $_precmd command as a string. We're not actually
trying to evaluate the contents of the command.

Reported by:	Glenn Johnson <gjohnson@srrc.ars.usda.gov>
This commit is contained in:
Mike Makonnen 2003-07-24 18:17:21 +00:00
parent 234f7acb7c
commit 22b4909430

View File

@ -669,7 +669,7 @@ $command $rc_flags $command_args"
# if the precmd failed and force
# isn't set, exit
#
if [ -n $_precmd ]; then
if [ -n "$_precmd" ]; then
eval $_precmd
_return=$?
[ $_return -ne 0 ] && [ -z "$rc_force" ] &&