From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9717 invoked from network); 4 Sep 2006 08:43:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Sep 2006 08:43:20 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 20280 invoked from network); 4 Sep 2006 08:43:11 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Sep 2006 08:43:11 -0000 Received: (qmail 22090 invoked by alias); 4 Sep 2006 08:43:05 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10672 Received: (qmail 22081 invoked from network); 4 Sep 2006 08:43:04 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Sep 2006 08:43:04 -0000 Received: (qmail 19294 invoked from network); 4 Sep 2006 08:43:04 -0000 Received: from david.siemens.de (192.35.17.14) by a.mx.sunsite.dk with SMTP; 4 Sep 2006 08:43:03 -0000 Received: from mail1.siemens.de (localhost [127.0.0.1]) by david.siemens.de (8.12.6/8.12.6) with ESMTP id k848h3xN013332 for ; Mon, 4 Sep 2006 10:43:03 +0200 Received: from mchp771a.ww002.siemens.net (mchp771a.ww002.siemens.net [139.25.131.189]) by mail1.siemens.de (8.12.6/8.12.6) with ESMTP id k848h2kV021367 for ; Mon, 4 Sep 2006 10:43:02 +0200 Received: from MCHP7R6A.ww002.siemens.net ([139.25.131.164]) by mchp771a.ww002.siemens.net with Microsoft SMTPSVC(6.0.3790.1830); Mon, 4 Sep 2006 10:43:02 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: Solved, but now a new twist (was: Double Evaluation Question (not in FAQ)) Date: Mon, 4 Sep 2006 10:43:01 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Solved, but now a new twist (was: Double Evaluation Question (not in FAQ)) Thread-Index: AcbP6eqAy/Ln+XNuRGC5wbMkh0YCAwAEzouQ From: "Com MN PG P E B Consultant 3" To: "zsh-users Mailinglist" X-OriginalArrivalTime: 04 Sep 2006 08:43:02.0616 (UTC) FILETIME=[2206ED80:01C6CFFE] > Assuming that variables are assigned in the following way: > > x=3Dabc > y=3Ddef > z=3D'$x $y' # Note: Single Quotes! > > How could I write an expression, which "evaluates" $z, in > that it would return "abc def"?=20 Sorry, I should have read the man page in better detail before posting this question. The solution is of course ${(e)z} But now comes another twist to this problem: I found that I *also* would like to have the resulting string to undergo tilde-expansion, which is of course a completely different story. That is, if I have an assignment x=3D'~linus ~steve' Is there also a simple solution, which expands $x to the home directories of linus and steve, with spacing preserved? Ronald --=20 Ronald Fischer (phone +49-89-63676431) mailto:mn-pg-p-e-b-consultant-3.com@siemens.com