# untested sub bashquote { local $_ = shift; s/'/'"'"'/g; return "'$_'"; }