From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18907 invoked by alias); 5 Apr 2011 03:54:43 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15931 Received: (qmail 21089 invoked from network); 5 Apr 2011 03:54:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at spodhuis.org does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d200912; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=74j7GKL4m8lzRJPwijD7QBYD9dWrXk0YpKrb36tVoLk=; b=maWnDTbg6h31PoUTY03rWrlF4qNnzsI1VfEl8yJ2AfuUqUVCYZArxYbBpbsEYBMfHYCMys4kTeFzio1lRwWIWPdW/NFydZjQy08G7B6yfBLNpxuadjG8u/fRgbMR3SH/zqIDJr0G5t26NcIcvhiCCUEF4X3XOMuBIarozWjsxrw=; Date: Mon, 4 Apr 2011 23:54:35 -0400 From: Phil Pennock To: Aaron Davies Cc: Zsh Users Subject: Re: is variable with variable name possible? Message-ID: <20110405035435.GA97549@redoubt.spodhuis.org> Mail-Followup-To: Aaron Davies , Zsh Users References: <20110404140651.GA9371@yahoo.fr> <20110404162824.GB9371@yahoo.fr> <20110404205002.GD9371@yahoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On 2011-04-04 at 22:54 -0400, Aaron Davies wrote: > > eval "$somevar=\$PWD" > > shirley we have an equiv of bash2's ${!foo} Sure thing, and just like Bash, it's useful for de-referencing more than it is for assignment. ${(P)foo} > i've always advertised zsh as a superset of everything interesting > from every other shell, please tell me i'm not wrong.... You're wrong. zsh is a highly capable shell, but there are a myriad of interesting features out there in other shells. rc has generalised file-descriptor plumbing; ksh has named background pools, namespaced variables, generic character class types for matching (think "\d" in a glob to match a digit), seeking to an offset in a file in a #((expr)), and seeking forward automatically to a pattern with <#pattern. ksh has discipline functions and probably more I've missed. Innovation doesn't only happen in zsh and sometimes we too blatantly copy from others. Hrm, anyone know why ksh opens the <>filename on stdout while zsh opens it on stdin? -Phil