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

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

From
Dan McGee <dpmcgee@gmail.com>
Date
Nov 1, 2007, 05:27 UTC
Message-ID
<449c10960710312227s6688cc5fne9ff246e042cdc3c@mail.gmail.com>
In-Reply-To
<7vr6jaczps.fsf@gitster.siamese.dyndns.org>
On 11/1/07, Junio C Hamano <gitster@pobox.com> wrote:
Show 18 quoted lines
> Dan McGee <dpmcgee@gmail.com> writes:
>
> > 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-<.
Wow, back to the drawing board here. I've been up too long today.
-Dan
Previous: Junio C Hamano
Message 3 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.