Am 01.06.2016 um 05:31 schrieb Jeff King:
printf '%s' "$1" | sed "s/'/'\\\\''/g"
...
export -p | grep "^declare -x $1="
...
"$fake_env_var_=$(shellquote "$fake_env_orig_")"
...
eval "$fake_env_var_=$(shellquote "$fake_env_val_")"
An intolerable number of new processes... Please stop this mental exercise. -- Hannes -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html