From owner-svn-src-all@FreeBSD.ORG Wed Apr 28 15:37:00 2010 Return-Path: Delivered-To: svn-src-all@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA00C106564A; Wed, 28 Apr 2010 15:37:00 +0000 (UTC) (envelope-from emaste@freebsd.org) Received: from mail2.sandvine.com (Mail1.sandvine.com [64.7.137.134]) by mx1.freebsd.org (Postfix) with ESMTP id A83B08FC21; Wed, 28 Apr 2010 15:37:00 +0000 (UTC) Received: from labgw2.phaedrus.sandvine.com ([192.168.3.11]) by mail2.sandvine.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 28 Apr 2010 11:36:59 -0400 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 10332) id 71D2511703; Wed, 28 Apr 2010 11:36:59 -0400 (EDT) Date: Wed, 28 Apr 2010 11:36:59 -0400 From: Ed Maste To: Jilles Tjoelker , src-committers@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, svn-src-head@FreeBSD.ORG Message-ID: <20100428153659.GA42914@sandvine.com> References: <201004252043.o3PKhJi7065713@svn.freebsd.org> <20100427035224.GA87611@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100427035224.GA87611@nagual.pp.ru> User-Agent: Mutt/1.4.2.1i X-OriginalArrivalTime: 28 Apr 2010 15:36:59.0427 (UTC) FILETIME=[A4268730:01CAE6E8] Cc: Subject: Re: svn commit: r207206 - head/bin/sh X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2010 15:37:01 -0000 On Tue, Apr 27, 2010 at 07:52:25AM +0400, Andrey Chernov wrote: > Just wonder, do you have plans to implement ${!variable} sometimes? > This bashism is very useful: ... While we're on this topic, I'll mention the bashism I'd like to see support for -- array variables. Older versions supported only one-dimensional numeric indicies. http://tldp.org/LDP/abs/html/arrays.html foo[1]=abc foo[2]=def echo ${foo[1]} ${foo[2]} Bash 4 adds associative arrays. foo[bar]=ghi foo[baz]=jkl echo ${foo[bar]} ${foo[baz]} echo ${foo[*]} -Ed