From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Michael Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] guile-readline: Use an empty string if HOME is unset Date: Wed, 10 Sep 2014 14:06:15 -0400 Message-ID: References: <87vbowa3g5.fsf@gmail.com> <83k35b9zs0.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1410372396 21178 80.91.229.3 (10 Sep 2014 18:06:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2014 18:06:36 +0000 (UTC) Cc: guile-devel@gnu.org To: Eli Zaretskii Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Sep 10 20:06:30 2014 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XRmHd-0007d9-DU for guile-devel@m.gmane.org; Wed, 10 Sep 2014 20:06:21 +0200 Original-Received: from localhost ([::1]:57965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRmHc-0003iY-VU for guile-devel@m.gmane.org; Wed, 10 Sep 2014 14:06:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRmHa-0003iQ-Lx for guile-devel@gnu.org; Wed, 10 Sep 2014 14:06:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRmHZ-0006x1-Bf for guile-devel@gnu.org; Wed, 10 Sep 2014 14:06:18 -0400 Original-Received: from mail-pa0-x22e.google.com ([2607:f8b0:400e:c03::22e]:46962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRmHZ-0006wh-4z; Wed, 10 Sep 2014 14:06:17 -0400 Original-Received: by mail-pa0-f46.google.com with SMTP id kq14so5143308pab.5 for ; Wed, 10 Sep 2014 11:06:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=eeO87SaUUqh3NyCe6u4BqyzVXGQ+W+fvGs3y2AfHeK0=; b=lEe8XNA2/xTuQk7c0362H22Y2BV8ijuvuscP1tHVhgFmFCU1IgghztGX2EaZGJi8d8 //yNxCSh6jUhOdH9BbiZK2khOgco9P5vP2O/BRksmGqxn5Kw1jOEOs+ZGsjIcApoCTcZ 9lB+Vg/KAgfb4n2Mb39e4G87oloA9ZRnhFzhkHW8vMiVdLkSfk6MgBM4uC51PnQxIFl2 rwszZ8YtRS2usXwfwhqdG9aorsuneFSreXpd/pVZgdX5bneCZ2iX+4r8EUi/KXNleRgJ 2OI+KqT09FewgI5iJakfkOyk4hQy9vVNjRKA6ri2dYMfbhWWPosGms+a9s//WT7RvA6A Y5RA== X-Received: by 10.66.145.103 with SMTP id st7mr66832811pab.43.1410372375972; Wed, 10 Sep 2014 11:06:15 -0700 (PDT) Original-Received: by 10.70.135.6 with HTTP; Wed, 10 Sep 2014 11:06:15 -0700 (PDT) In-Reply-To: <83k35b9zs0.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22e X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17436 Archived-At: On Wed, Sep 10, 2014 at 1:00 PM, Eli Zaretskii wrote: >> From: David Michael >> Date: Tue, 09 Sep 2014 17:28:42 -0400 >> >> -(define-once history-file (string-append (getenv "HOME") "/.guile_history")) >> +(define-once history-file >> + (string-append (or (getenv "HOME") "") "/.guile_history")) > > Is there any guarantee that the root directory will be writable? > > How about "./.guile_history" instead? That is okay with me. Do you want a new patch with s/""/"."/ and s/empty string/current directory/? Thanks. David P.S. I resent the patch to bug-guile earlier so it got a bug number. It's #18439. Sorry for double-posting.