prefix-dev / shell

The ultimate cross-platform, bash-like shell
MIT License
57 stars 8 forks source link

Don't exit the shell on syntax error #33

Closed certik closed 1 month ago

certik commented 1 month ago
C:\Program Files\Git$ cd ~
Error: Failed to execute

Caused by:
     --> 1:4
      |
    1 | cd ~
      |    ^---
      |
      = expected EOI, AND_IF, OR_IF, Stdout, StdoutStderr, cmd_suffix, or separator_op
error: process didn't exit successfully: `target\debug\shell.exe` (exit code: 1)

This exits the shell. Instead show the next prompt.

certik commented 1 month ago

This one is high priority, as for daily use, we do not want to exit the shell if I mistype something or try to use a feature that is not implemented yet.

prsabahrami commented 1 month ago

I am working on adding miette support for pest. That way this can be easily taken care of.

prsabahrami commented 1 month ago

This has been fixed in #38 Support for miette should be added later. Switching from bug to enhancement.

certik commented 1 month ago

This issue is fixed. I opened a new one (https://github.com/prefix-dev/shell/issues/77) for miette.