Skip to content

Semicolon doesn't always stop on error #1619

Closed

Description

@sophiajt

Describe the bug
If you cause an error on the left-hand side of the semicolon, you can still get some unexpected output.

Here's one example:

❯ asdfasfd ; echo done
───┬─────────
 # │ <value>
───┼─────────
 0 │
───┴─────────
error: Command not found
- shell:1:20
1 | asdfasfd ; echo done
  | ^^^^^^^^ command not found

To Reproduce
Steps to reproduce the behavior:

  1. Cause error before ; then echo something after

Expected behavior
Nothing should be run on after the ; if there's an error in the output of the left hand side

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions