nushell as login shell fails on lima command
Open
enhancement
- Dominant language
- Go
- Stars
- 21.9k
- Forks
- 957
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 53
Description
### Description
Seems like `lima` or `limactl shell default` tries to login and change directory but fails in [nushell](https://www.nushell.sh/) as nushell doesn't support `||` syntax. Here the specific error
```
lima
Error: nu::parser::shell_oror
× The '||' operator is not supported in Nushell
╭─[source:1:23]
1 │ cd /Users/redacted || cd /Users/redacted ; exec "$SHELL" --login
· ─┬
· ╰── instead of '||', use 'try' or 'or'
╰────
help: use 'try' instead of the shell '||', or 'or' instead of the boolean '||'
```
This may happen with any shell that doesn't support POSIX shell syntax though.
Contributor guide
Assessment
This issue has not been assessed yet.