From: Jeff King Date: Wed, 01 Jun 2016 05:48:59 GMT Subject: Re: [PATCH] t4014: shell portability fix Message-ID: <20160601054858.GA25528@sigill.intra.peff.net> In-Reply-To: <574E771C.7030009@kdbg.org> On Wed, Jun 01, 2016 at 07:48:12AM +0200, Johannes Sixt wrote: > 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. Please read to the end of the thread? -Peff