c9c72ab11c
From a suggestion by nicowilliams, put double quotes aroung the varaible $foopassword in case the password contains whitespace or other special characters.