git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/2] Move the pick_author code to git-sh-setup

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 24, 2007, 06:39 UTC
Message-ID
<7v7ipt3lh6.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0706240000340.4059@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 5 quoted lines
> -	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"
Previous: Johannes SchindelinNext: Junio C Hamano
Message 2 of 5 in “Move the pick_author code to git-sh-setup”
  1. 1/2 Move the pick_author code to git-sh-setupJohannes Schindelin, Jun 23, 2007
  2. Junio C HamanoJun 24, 2007
  3. Junio C HamanoJun 24, 2007
  4. Johannes SchindelinJun 24, 2007
  5. Junio C HamanoJun 24, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.