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

Re: [PATCH] [RFC] Generational repacking

From
Sam Vilain <sam@vilain.net>
Date
Jun 6, 2007, 22:53 UTC
Message-ID
<46673AF5.1070901@vilain.net>
In-Reply-To
<7vlkewya4s.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 12 quoted lines
> Sam Vilain <sam.vilain@catalyst.net.nz> writes:
>   
>> +			c_gen=`eval "echo \\\$c_gen_$i"`
>> +			packs=`eval "echo \\\$gen_$i"`
>>     
>
> I used to write something like these myself when I was young
> ;-), but it is enough to write:
>
> 	eval 'c_gen=$c_gen_'$i
> 	eval "packs=\$gen_$i"
>   
Would've re-written it in Perl ages ago :P
Sam.
Previous: Junio C HamanoNext: Dana How
Message 3 of 13 in “[RFC] Generational repacking”
  1. [RFC] Generational repackingSam Vilain, Jun 6, 2007
  2. Junio C HamanoJun 6, 2007
  3. Sam VilainJun 6, 2007
  4. Dana HowJun 7, 2007
  5. Sam VilainJun 7, 2007
  6. Nicolas PitreJun 7, 2007
  7. Sam VilainJun 7, 2007
  8. Nicolas PitreJun 7, 2007
  9. Sam VilainJun 7, 2007
  10. Martin LanghoffJun 7, 2007
  11. Sam VilainJun 7, 2007
  12. Martin LanghoffJun 7, 2007
  13. Nicolas PitreJun 7, 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.