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

Correctly print subshells nested in a variable expansion #7

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

BolunThompson
Copy link
Contributor

Before, shasta was printing expressions like abc=$( (echo abc) ) as abc=$((echo abc)), an arithmetic substitution. Same as libdash/#32, where a libdash/shasta test was added.

Triggered in the coreutils configure script (see binpash/pash#573).

The pretty printer printed it as $(()), an arithmetic expansion.
@mgree mgree merged commit 13a43e4 into binpash:main Jan 3, 2025
4 checks passed
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.

2 participants