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

Re: [PATCH] rebase: standardize on $() for command substitution

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 1, 2007, 05:16 UTC
Message-ID
<7vr6jaczps.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1193892608-31322-1-git-send-email-dpmcgee@gmail.com>
Dan McGee <dpmcgee@gmail.com> writes:
Show 13 quoted lines
> Commit 889a50e909dba5f4416049afc5eeae601fe133bc changed several `` to $()
> format for command substitution, so we should standardize on one format
> for clarity.
> ...
> @@ -203,7 +203,7 @@ do
>  	-s|--s|--st|--str|--stra|--strat|--strate|--strateg|--strategy)
>  		case "$#,$1" in
>  		*,*=*)
> -			strategy=`expr "z$1" : 'z-[^=]*=\(.*\)'` ;;
> +			strategy=$(expr "z$1" : 'z-[^=]*=\(.*\)'` ;)
>  		1,*)
>  			usage ;;
>  		*)

The patch might have meant well, but it is a rather unnecessary code churn without fixing anything and introducing a bug X-<.

Previous: Dan McGeeNext: Dan McGee
Message 2 of 3 in “rebase: standardize on $() for command substitution”
  1. rebase: standardize on $() for command substitutionDan McGee, Nov 1, 2007
  2. Junio C HamanoNov 1, 2007
  3. Dan McGeeNov 1, 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.