mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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.
This commit is contained in:
parent
c879354003
commit
7197710121
2 changed files with 15 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue