unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Konrad Hinsen <konrad.hinsen@fastmail.net>
To: 43331@debbugs.gnu.org
Subject: bug#43331: [PATCH] repl: Look for script files in (getcwd).
Date: Fri, 11 Sep 2020 13:13:26 +0200	[thread overview]
Message-ID: <m1k0x0h8h5.fsf@fastmail.net> (raw)
In-Reply-To: <m1mu1wh8t2.fsf@fastmail.net>

* guix/scripts/repl.scm (guix-repl): Replace "." by (getcwd)
---
 guix/scripts/repl.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm
index 3c79e89f8d..80bf1460e9 100644
--- a/guix/scripts/repl.scm
+++ b/guix/scripts/repl.scm
@@ -178,7 +178,7 @@ call THUNK."
        (lambda ()
          (set-program-arguments script)
          (set-user-module)
-         (load-in-vicinity "." (car script)))))
+         (load-in-vicinity (getcwd) (car script)))))
 
     (when (null? script)
       ;; Start REPL
-- 
2.28.0





  reply	other threads:[~2020-09-11 11:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-11 11:06 bug#43331: guix repl doesn't find the script to execute Konrad Hinsen
2020-09-11 11:13 ` Konrad Hinsen [this message]
2020-09-16 13:35   ` bug#43331: [PATCH] repl: Look for script files in (getcwd) Ludovic Courtès
2020-09-11 11:15 ` bug#43331: Patch Konrad Hinsen
2020-09-11 11:18 ` bug#43331: guix repl doesn't find the script to execute zimoun
2020-09-11 15:31   ` Konrad Hinsen

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://guix.gnu.org/

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

  git send-email \
    --in-reply-to=m1k0x0h8h5.fsf@fastmail.net \
    --to=konrad.hinsen@fastmail.net \
    --cc=43331@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).