unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: David Michael <fedora.dm0@gmail.com>
To: 18439@debbugs.gnu.org
Subject: bug#18439: [PATCH] guile-readline: Use the current directory if HOME is unset
Date: Sat, 20 Sep 2014 10:43:21 -0400	[thread overview]
Message-ID: <87r3z6qrna.fsf@gmail.com> (raw)
In-Reply-To: <87lhpsbadu.fsf@gmail.com>

* guile-readline/ice-9/readline.scm (history-file): When the HOME
  environment variable is unset, use the current directory instead.
---
 guile-readline/ice-9/readline.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/guile-readline/ice-9/readline.scm b/guile-readline/ice-9/readline.scm
index 02e68af..df2edaf 100644
--- a/guile-readline/ice-9/readline.scm
+++ b/guile-readline/ice-9/readline.scm
@@ -119,7 +119,8 @@
 (define-once the-readline-port #f)
 
 (define-once history-variable "GUILE_HISTORY")
-(define-once history-file (string-append (getenv "HOME") "/.guile_history"))
+(define-once history-file
+  (string-append (or (getenv "HOME") ".") "/.guile_history"))
 
 (define-public readline-port
   (let ((do (lambda (r/w)
-- 
1.9.3






  parent reply	other threads:[~2014-09-20 14:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-10  0:13 bug#18439: [PATCH] guile-readline: Use an empty string if HOME is unset David Michael
2014-09-20 14:09 ` Mark H Weaver
2014-09-20 14:43 ` David Michael [this message]
2014-09-22  3:26   ` bug#18439: [PATCH] guile-readline: Use the current directory " Mark H Weaver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r3z6qrna.fsf@gmail.com \
    --to=fedora.dm0@gmail.com \
    --cc=18439@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).