Re: [PATCH 1/2] Move the pick_author code to git-sh-setup
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:18
Johannes Schindelin [off-list ref] writes:
- set_author_env=`git show -s --pretty=raw --encoding="$encoding" "$use_commit" | - LANG=C LC_ALL=C sed -ne "$pick_author_script"` - eval "$set_author_env" ... + eval $(get_author_ident_from_commit "$use_commit")
Are you sure about this part of the change? I suspect that you
are losing IFS by not dq'ing the argument you give to the eval.
#!/bin/sh
test1 () {
echo "$1=' d e'"
}
eval $(test1 A)
eval "$(test1 B)"
echo "A=$A"
echo "B=$B"