Justin Clift wrote:
> if [ x"$foo" = x"" ]; then
This is the safest way. It prevents problems when $foo begins with with a"-"
I don't know about your first question, though.