lima-vm / lima-vm/lima

Newlines in `lima` invocations are not correctly passed

Open
#542 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

I found this bug while running a script that uses a multiline invocation of `docker run`, running a bash script (`docker run ... sh -c '... newlines in here ...'`).

Expected behavior:
```bash
$ echo "hi
bye"

# Output:
# hi
# bye
```

Actual behavior:
```bash
lima echo "hi
bye"

# Output:
# hi\nbye
```

Any hints are appreciated. Haven't dug into the code, but if you could provide any pointers I'd be happy to make a PR.

Using lima version 0.8.0 on MacOS 12.1, with `docker.yaml`. Running the same bash command inside the `lima` shell works fine, just running it as a one-liner doesn't work.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.