svn commit: r207206 - head/bin/sh

Andrey Chernov ache at nagual.pp.ru
Tue Apr 27 03:52:28 UTC 2010


On Sun, Apr 25, 2010 at 08:43:19PM +0000, Jilles Tjoelker wrote:
> Author: jilles
> Date: Sun Apr 25 20:43:19 2010
> New Revision: 207206
> URL: http://svn.freebsd.org/changeset/base/207206
> 
> Log:
>   sh: Use stalloc for arith variable names.
>   
>   This is simpler than the custom memory tracker I added earlier, and is also
>   needed by the dash arith code I plan to import.

Just wonder, do you have plans to implement ${!variable} sometimes?
This bashism is very useful:

VAR_a1=foo
x=VAR_a1
echo ${!x}

-- 
http://ache.pp.ru/


More information about the svn-src-all mailing list