Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support subshells #232

Merged
merged 5 commits into from
Jan 28, 2024
Merged

feat: support subshells #232

merged 5 commits into from
Jan 28, 2024

Conversation

dsherret
Copy link
Owner

@dsherret dsherret commented Jan 28, 2024

{
  const result = await $`(echo 1 && echo 2) | cat -`.text();
  assertEquals(result, "1\n2");
}
{
  const result = await $`echo 1 && (echo 2 && exit 1 && echo 3) || echo 4`.text();
  assertEquals(result, "1\n2\n4");
}

@dsherret dsherret merged commit 634af83 into main Jan 28, 2024
4 checks passed
@dsherret dsherret deleted the feat_support_subshells branch January 28, 2024 17:10
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