unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Konrad Hinsen <konrad.hinsen@fastmail.net>
Cc: 43331-done@debbugs.gnu.org
Subject: bug#43331: [PATCH] repl: Look for script files in (getcwd).
Date: Wed, 16 Sep 2020 15:35:55 +0200	[thread overview]
Message-ID: <87zh5pn8sk.fsf@gnu.org> (raw)
In-Reply-To: <m1k0x0h8h5.fsf@fastmail.net> (Konrad Hinsen's message of "Fri, 11 Sep 2020 13:13:26 +0200")

Hi,

Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:

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

I added a test and a comment and applied.

Thank you!

Ludo’.




  reply	other threads:[~2020-09-16 13:37 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 ` bug#43331: [PATCH] repl: Look for script files in (getcwd) Konrad Hinsen
2020-09-16 13:35   ` Ludovic Courtès [this message]
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=87zh5pn8sk.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=43331-done@debbugs.gnu.org \
    --cc=konrad.hinsen@fastmail.net \
    /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).