limactl shell
escapes special characters too aggressively in some cases
#1482
Labels
area/cli
limactl CLI user experience
Description
I was trying to find a way to share my local environment to the VM while working on an issue on Finch and while testing out a few (admittedly hacky) options I kept running into issues with the way that
limactl shell
escapes special characters:1. Running multiple commands at once via
limactl shell
What I expected: the file should be sourced, and the
env
command should runWhat happened: the special character argument was surrounded in quotes, causing it to be interpreted as an argument to
/tmp/lima/env-proto
:2. Declaring an env variable that contains a special character
What I expected:
FOO
should be declared as$
, and then theenv
command should runWhat happened:
FOO=$
was surrounded in single quotes, causing it to be interpreted as a filename instead of a variable declaration:Version
OS:
Lima:
The text was updated successfully, but these errors were encountered: