From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-x234.google.com (mail-wg0-x234.google.com [IPv6:2a00:1450:400c:c00::234]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 391E878730 for ; Mon, 29 Dec 2014 08:44:51 -0800 (PST) Received: by mail-wg0-f52.google.com with SMTP id x12so19295400wgg.11 for ; Mon, 29 Dec 2014 08:42:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=u1g5/SOc/BVn9oL4xz3JM99eKVoluRJ0j2EtriKUXXU=; b=qUGQ4kSwtJ26NYMBaUbimPqbi9Q+hpOn7uJi6zUO3aSCg4kDt2q5YSti2pL0y1GI5n Y9BcgdoxkrDjQ6Gd51O2SUQq3khsTgj3KZCZUbjTY/QDW+p8zGhozZBxP2RSKYEQtFer 86u+CqXxHxyn7prDtmxKNiQtdTqoQtM6q7c0OFFxApApGUX1XHvVjuANEzL8cBOWN8+L WLdO+FuSW9vi7KkBkhQEHIucVjVCf4rjskdKF7uiaCMGZzeaxTMDkE7iq26oXc5rnPf6 SbujHRWBlKdF6BUsiYsw5i4ObHrYw4jd1FQ72qs387MuBajGtpFdcovNQKKSt1l82Z3D KBqA== X-Received: by 10.194.238.104 with SMTP id vj8mr22816402wjc.107.1419871354542; Mon, 29 Dec 2014 08:42:34 -0800 (PST) Received: from spoons.adamthompson.me.uk (8.3.3.3.0.d.e.f.f.f.2.d.4.2.2.0.5.9.a.d.8.a.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fba8:da95:224:d2ff:fed0:3338]) by mx.google.com with ESMTPSA id ud4sm40135283wib.0.2014.12.29.08.42.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Dec 2014 08:42:33 -0800 (PST) Date: Mon, 29 Dec 2014 16:42:21 +0000 From: Adam Thompson To: Karl Dahlke Message-ID: <20141229164221.GA3513@spoons.adamthompson.me.uk> References: <20141128200309.eklhad@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ew6BAiZeqk4r7MaW" Content-Disposition: inline In-Reply-To: <20141128200309.eklhad@comcast.net> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Edbrowse-dev@lists.the-brannons.com Subject: Re: [Edbrowse-dev] glob X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2014 16:44:51 -0000 --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 28, 2014 at 08:03:09PM -0500, Karl Dahlke wrote: > By using wordexp, Adam suggests >=20 > > "posix shell" or words to that effect and then it becomes fairly clear >=20 > Clear? Really? To you and me maybe. Bash does so many crazy things > at the shell ... arithmetic, regexp substitution, > and tries to interpret so many characters as something, > I really don't want to go there. > I should be able to call up a file called $phones/at&t > without having to think about it. Ok, a couple of things: wordexp is posix *not* bash. There's an important difference in that it doesn't do as many crazy substitutions as bash does. Also we can switch off the command substitution feature which makes things a little simpler. In addition, we need to standardise the escape character I think if we use = glob as otherwise we're going to have ` for some things and \ for others, t= hat's just a mess. If you really want to keep your hand-rolled env var expansion, then we definitely need the ${var} syntax, and probably the \ as escape character to work with the glob call. Cheers, Adam. --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUoYRtAAoJELZ22lNQBzHON2sH/02jw9lnalMi6PmU5///9zkd g3mX76KlTc8zz/TXtbMF6PmqVoz6mBd2Rtwt31SYu+MrHXg6mVRU26YeTSCVDxML /zqZ55+ZnrM040dHrB8ZKfTXgdT9vN+6Ku5TOpNJpER1gXL3VV9EbRMbRTfLEQox Jt3e4wIM5vZ7AZZhVu1L+olEvZdFvceS1rNDE5nLGUsutEFjfoDdXhMYd9W+b6Uv VeelF0POk//Z9edtAkqOcEUk5My3kj2W2lnN2vFj7iJOsel1vMUFtCzqpFpI0wcY ThGui8MYXp5xm9lybqL2AOi8RUErx7ITiP5xgmQB+gvRNoT1rQ++LczMlPG9zOc= =GuOQ -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW--