diff options
author | Ludovic Courtès <ludo@gnu.org> | 2021-12-10 12:26:29 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-12-10 15:32:44 +0100 |
commit | 71977101218d1fd5d7f5016cbbcb8710be057d49 (patch) | |
tree | 1748634f97058e9b754df205ab2eaee0ebc041c9 /guix/scripts | |
parent | c879354003df61703c4b6c874650608bf569d77d (diff) |
shell: When using '-D -f', '-D' has no effect on remaining packages.
Fixes <https://issues.guix.gnu.org/52093>.
Reported by Konrad Hinsen <konrad.hinsen@fastmail.net>.
* guix/scripts/shell.scm (%options): In "--file" handler, add call to
'ensure-ad-hoc'.
* tests/guix-shell.sh: Add test.
Diffstat (limited to 'guix/scripts')
-rw-r--r-- | guix/scripts/shell.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/scripts/shell.scm b/guix/scripts/shell.scm index 7cd7ce78e1..546639818f 100644 --- a/guix/scripts/shell.scm +++ b/guix/scripts/shell.scm @@ -115,7 +115,7 @@ interactive shell in that environment.\n")) (option '(#\f "file") #t #f (lambda (opt name arg result) (alist-cons 'load (tag-package-arg result arg) - result))) + (ensure-ad-hoc result)))) (option '(#\q) #f #f (lambda (opt name arg result) (alist-cons 'explicit-loading? #t result))) |