Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 May 2009 09:17:33 -0700
From:      "Peter Steele" <psteele@webmail.maxiscale.com>
To:        <freebsd-questions@freebsd.org>
Subject:   RE: How to say this in Bash?
Message-ID:  <B8A480488C0C6849826655761349EA4338B1@owa.webmail.maxiscale.com>
References:  <904563.63141.qm@web57001.mail.re3.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>$ 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B8A480488C0C6849826655761349EA4338B1>