Skip to content

arguments of shell command doesn't support "raw" #251

Open
@robberphex

Description

@robberphex

limactl shell command actually take two responsibility:

  1. : lima act like ssh,
# expected to get home dir in lima guest vm
$ limactl shell default -- echo '$HOME'
/home/robert.linux

Case 1 is right.

  1. : lima act like command tunnel, in following example, as tunnel to pass arguments to nerdctl.
# expected to get home path in container
$ alias docker='limactl shell default -- nerdctl'
docker run -it --rm alpine:latest sh -x -c 'echo $HOME'
+ echo

Case 2, the behavior of limactl is not expected.
Comparing with docker for desktop:

$ /usr/local/bin/docker run -it --rm alpine:latest sh -x -c 'echo $HOME'
+ echo /root
/root

I propose to add --raw flag to make limactl support act like command tunnel, which means what you pass to limactl, what inner command get.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions