From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (75-164-228-9.ptld.qwest.net [75.164.228.9]) by hurricane.the-brannons.com (Postfix) with ESMTPSA id A3BED21DE04 for ; Thu, 14 May 2015 08:43:13 -0700 (PDT) From: chris@the-brannons.com To: edbrowse-dev@lists.the-brannons.com Date: Thu, 14 May 2015 08:45:53 -0700 Message-ID: <877fsbp3gu.fsf@mushroom.localdomain> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Subject: [Edbrowse-dev] we shouldn't be letting glob() do our tilde expansion 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: Thu, 14 May 2015 15:43:13 -0000 Two reasons, one can probably be surmounted, the other probably cannot. 1. musl, the libc implementation that I use for building the static executables, lacks GLOB_TILDE_CHECK (and GLOB_TILDE for that matter). I don't think they're in POSIX. 2. The insurmountable one is that it creates a big inconsistency in the behavior of commands with respect to filename expansion. Look at the following typescript to see why. Script started on Thu 14 May 2015 08:31:42 AM PDT [chris@mushroom ~]$ edbrowse do not send referrer edbrowse ready $a hello . w ~/foo cannot create ~/foo w /home/chris/foo 6 1c goodbye . w ~/foo 8 q [chris@mushroom ~]$ exit exit Script done on Thu 14 May 2015 08:32:26 AM PDT I'd be happy to submit a patch for review to rework envFile, so that it does its own ~ and ~username expansion. Sorry I didn't catch this earlier. -- Chris