From owner-freebsd-questions@FreeBSD.ORG Mon May 25 16:17:40 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0F8C106566C for ; Mon, 25 May 2009 16:17:40 +0000 (UTC) (envelope-from psteele@webmail.maxiscale.com) Received: from k2smtpout04-01.prod.mesa1.secureserver.net (k2smtpout04-01.prod.mesa1.secureserver.net [64.202.189.166]) by mx1.freebsd.org (Postfix) with SMTP id 6EFB68FC1E for ; Mon, 25 May 2009 16:17:40 +0000 (UTC) (envelope-from psteele@webmail.maxiscale.com) Received: (qmail 3117 invoked from network); 25 May 2009 16:17:39 -0000 Received: from unknown (HELO owa.webmail.maxiscale.com) (72.167.52.135) by k2smtpout04-01.prod.mesa1.secureserver.net (64.202.189.166) with ESMTP; 25 May 2009 16:17:39 -0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 25 May 2009 09:17:33 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to say this in Bash? Thread-Index: AcndUcDQIpcny1v6SA+Hc2lsmYScdAAAkoxA References: <904563.63141.qm@web57001.mail.re3.yahoo.com> From: "Peter Steele" To: Subject: RE: How to say this in Bash? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2009 16:17:41 -0000 >$ echo "${X}" > ${Z} >bash: ${Z}: ambiguous redirect > >I want to append all variables in X and Y into Z so that "echo $Z" should be: >XX1=3DYES XX2=3DYES YY1=3DYES YY2=3DYES Redirection is not the right way to do it. Just do this: $ Z=3D"$X $Y" $ echo $Z XX1=3DYES XX2=3DYES YY1=3DYES YY2=3DYES