Skip to content

feat: support set +e / set +o errexit#171

Open
dsherret wants to merge 10 commits intodenoland:mainfrom
dsherret:feat_support_set_e
Open

feat: support set +e / set +o errexit#171
dsherret wants to merge 10 commits intodenoland:mainfrom
dsherret:feat_support_set_e

Conversation

@dsherret
Copy link
Copy Markdown
Contributor

@dsherret dsherret commented Apr 22, 2026

No description provided.

Replace the opaque `is_async` boolean with two orthogonal flags —
`is_async` (was `&`) and `ends_line` (followed by `\n` / `\r\n`) — so
consumers can apply different semantics per boundary. In particular,
`cmd &\nnext` is now represented as `is_async: true, ends_line: true`
instead of losing the newline.
Abort a sequential list at the first non-zero command when the errexit
option is enabled. Failure inside `&&` / `||` chains or pipelines is
unaffected, matching bash semantics.
@dsherret dsherret marked this pull request as ready for review April 23, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant