guix shell '-E' option can be silently ignored

  • Done
  • quality assurance status badge
Details
One participant
  • Maxim Cournoyer
Owner
unassigned
Submitted by
Maxim Cournoyer
Severity
normal
M
M
Maxim Cournoyer wrote on 27 Jan 2023 17:28
(name . bug-guix)(address . bug-guix@gnu.org)
87357wx7p9.fsf@gmail.com
Hello,

I just encountered a situation where -E is not correctly parsed/used and
ignore silently.

Reproducer:

Toggle snippet (3 lines)
guix shell -CD igraph -E /gnu=/gnu strace

The above doesn't work (there are far too few entries to /gnu/store, it
isn't shared).

This works:

Toggle snippet (3 lines)
guix shell -CD igraph --expose=/gnu=/gnu strace

--
Thanks,
Maxim
M
M
Maxim Cournoyer wrote on 27 Jan 2023 17:43
(address . 61099-done@debbugs.gnu.org)
87y1povsg1.fsf@gmail.com
Hello,

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

Toggle quote (17 lines)
> Hello,
>
> I just encountered a situation where -E is not correctly parsed/used and
> ignore silently.
>
> Reproducer:
>
> guix shell -CD igraph -E /gnu=/gnu strace
>
>
> The above doesn't work (there are far too few entries to /gnu/store, it
> isn't shared).
>
> This works:
>
> guix shell -CD igraph --expose=/gnu=/gnu strace

As reported by Ludovic on IRC, -E is not --expose, but --preserve.
There's no short option for --expose.

Closing!

--
Thanks,
Maxim
Closed
?