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:
parent
234f7acb7c
commit
22b4909430
@ -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" ] &&
|
||||
|
Loading…
Reference in New Issue
Block a user