Re: [PATCH] git-web--browse: invoke kfmclient directly

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH] git-web--browse: invoke kfmclient directly

From: Andreas Schwab <hidden>
Date: 2016-06-15 22:52:04

Junio C Hamano [off-list ref] writes:
Thinking about it a bit more, I suspect that we should just let the 'eval'
grab value out of the $browser_cmd variable, i.e.

	eval '$browser_cmd "$@"'

no?
That's a Useless Use of Eval and 100% equivalent to this:

$browser_cmd "$@"

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Re: [PATCH] git-web--browse: invoke kfmclient directly

From: Jeff King <hidden>
Date: 2016-06-15 22:52:04

On Mon, Sep 19, 2011 at 11:46:37PM +0200, Andreas Schwab wrote:
Junio C Hamano [off-list ref] writes:
quoted
Thinking about it a bit more, I suspect that we should just let the 'eval'
grab value out of the $browser_cmd variable, i.e.

	eval '$browser_cmd "$@"'

no?
That's a Useless Use of Eval and 100% equivalent to this:

$browser_cmd "$@"
Yeah. Doing:

  eval '$browser_cmd'

will do the whitespace-breaking we want, but it won't interpret actual
shell magic characters, which we need in order to be compatible with
other parts of git (which typically use "sh -c ..."). E.g.:

  foo=worked
  browser_cmd='echo $foo'
  # fail
  $browser_cmd
  # fail
  eval '$browser_cmd'
  # works
  eval "$browser_cmd"

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help