From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) by hurricane.the-brannons.com (Postfix) with ESMTPS id A160E7AE83 for ; Fri, 17 Apr 2015 00:13:50 -0700 (PDT) Received: by widdi4 with SMTP id di4so10224072wid.0 for ; Fri, 17 Apr 2015 00:12:46 -0700 (PDT) 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=AlA00f5ccKRMeGohh+c/HzcBU0lFqiMfs4BMdgcKVLk=; b=Pn3a4dM6A7bi/P79ZjNJHOnsEfz3W64/reyh4dLSA7IOo+7aH+Mc18PwPY09alG/iK NZkFN1GuZPZrbB9R5CXoiA/pwjzpSnfcTMOHXsfL6dXAt8zB46IDIzmQRBkXg8exent9 PE32R8/YGx7wO+wnjwIxS46qmnLyDioLlkyBGh/nRmm+69kOFfQ+3BN/46yxL9iWr6Es iVnj+cPQ4F8GwJu+M2/mAz/GTpHs0FLzFb2e9GcPhvp7ti3oZuUDIHJyhvDe2hSp8LlM 2mHmdlMtQ2Bg1cJCNeGHF9MUoXEfPe2GcBduxJC5wLEg2q27YCgwVL7+ZI26JPC8m8+0 v4TA== X-Received: by 10.194.187.16 with SMTP id fo16mr2977610wjc.86.1429254766391; Fri, 17 Apr 2015 00:12:46 -0700 (PDT) Received: from toaster.adamthompson.me.uk (toaster.adamthompson.me.uk. [2001:8b0:1142:9042::2]) by mx.google.com with ESMTPSA id hu1sm1391392wib.6.2015.04.17.00.12.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Apr 2015 00:12:45 -0700 (PDT) Date: Fri, 17 Apr 2015 08:12:43 +0100 From: Adam Thompson To: Karl Dahlke Message-ID: <20150417071243.GB5949@toaster.adamthompson.me.uk> References: <20150316174053.eklhad@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9zSXsLTf0vkW971A" Content-Disposition: inline In-Reply-To: <20150316174053.eklhad@comcast.net> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Edbrowse-dev@lists.the-brannons.com Subject: Re: [Edbrowse-dev] wordexp again 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: Fri, 17 Apr 2015 07:13:51 -0000 --9zSXsLTf0vkW971A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 16, 2015 at 05:40:53PM -0400, Karl Dahlke wrote: > I made one common routine to protect a file name or directory name from > shell expansion, it's the same code I was using before, but now it is sha= red > between the directory scan and the plugin commands. > Ok, that's good software practice, but it exposed a bug > that I think was there all along. > You can't edit a directory with a backslash in it. >=20 > mkdir "a\\b" > cd a?b > touch foo bar > cd .. > edbrowse a?b >=20 > Try it before or after my latest push. > The files therein just don't show up, > because wordexp doesn't expand a\\b/* properly. > and that is the proper escaping. > At the shell prompt > ls a\\b/* > works fine. > And it all works through the plugin system, i.e. a\b.pdf becomes > pdftohtml a\\b.pdf > This seems to be a bug in wordexp, at least my wordexp, > and I'm really not sure what to do about it. I can reproduce it, but I wasn't aware we were passing these to wordexp. I'll look into this if you want. Cheers, Adam. --9zSXsLTf0vkW971A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVMLJrAAoJELZ22lNQBzHOwnUIAMg7JY2NZv2BcC/V9ywIwwJq Y4VFCMMAAsixnQjpmwAIhfz23nyD2UF9QZSJmeIknsfil1Zmu4RFfQCCGZ1Tk13J 5bCJOI+Gf2DBy7o+5/1MSnf69D7zNccRfWZ0l6Vl5DnqTwn+GldWR+E4aqM2fzE2 FnzGQ9y+oUnm/NXDgB5ZrkqpG25p/JeLY5+/m0xMOsHpmzgNg4XHdbBesd6S8a8J StoIDwrQX4c/srFvPO/Bq5CZ4BlCRpaAZnf9HGf22ovpmfdXyOAyhMqF9P1RsIGX l+2J9XWEpOsKQ/RAuDW3jDm/QdEoHe79Ay+VsvsygfZzL9RhljwOr2CKYT9BJKc= =6Xht -----END PGP SIGNATURE----- --9zSXsLTf0vkW971A--