Skip to content

[Error] "fish: command substitutions not allowed here" when attempting to enter container #1210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nathanchance opened this issue Feb 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nathanchance
Copy link
Contributor

nathanchance commented Feb 15, 2024

Describe the bug

On current main, I am unable to enter containers due to fish: command substitutions not allowed here.

To Reproduce

$ git show -s --format=%H
5201a2d2e547bf1fe6a89cfdbe29274096b95be8

$ ./distrobox create -i ghcr.io/nathanchance/dev/arch -n dev-arch-test
Creating 'dev-arch-test' using image ghcr.io/nathanchance/dev/arch       [ OK ]
Distrobox 'dev-arch-test' successfully created.
To enter, run:

distrobox enter dev-arch-test

$ ./distrobox enter dev-arch-test
Starting container...                            [ OK ]
Installing basic packages...                     [ OK ]
Setting up devpts mounts...                      [ OK ]
Setting up read-only mounts...                   [ OK ]
Setting up read-write mounts...                  [ OK ]
Setting up host's sockets integration...         [ OK ]
Integrating host's themes, icons, fonts...       [ OK ]
Setting up package manager exceptions...         [ OK ]
Setting up rpm exceptions...                     [ OK ]
Setting up dpkg exceptions...                    [ OK ]
Setting up pacman exceptions...                  [ OK ]
Setting up pacman hooks...                       [ OK ]
Setting up distrobox profile...                  [ OK ]
Setting up sudo...                               [ OK ]
Setting up groups...                             [ OK ]
Setting up users...                              [ OK ]
Setting up skel...                               [ OK ]

Container Setup Complete!
fish: command substitutions not allowed here
$(getent passwd nathan | cut -f 7 -d :) -l
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

Expected behavior

I expect to be able to enter the container.

Logs

I am not sure my environment variables are sanitized, so I'd rather not upload the logs. If this is not easily reproducible, I can look at scrubbing them.

Desktop (please complete the following information):

  • Are you using podman, docker or lilipod? podman
  • Which version or podman, docker or lilipod? 4.9.2
  • Which version of distrobox? 5201a2d
  • Which host distribution? Arch Linux
  • How did you install distrobox? git
@nathanchance nathanchance added the bug Something isn't working label Feb 15, 2024
@89luca89
Copy link
Owner

Thanks for reporting! Fixed 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants