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

Small fixes/improvements to printed trees #162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jpco
Copy link
Collaborator

@jpco jpco commented Dec 28, 2024

; es.old -c 'echo {~ x ()}'
{~ x }
; es.new -c 'echo {~ x ()}'
{~ x}
; es.old -c 'echo @ {}; echo @ * {}'
@ * {}
@ *{}
; es.new -c 'echo @ {}; echo @ * {}'
@ *{}
@ *{}
; es.old -c 'echo {$(a b)}'
{$((a b))}
; es.new -c 'echo {$(a b)}'
{$(a b)}
; es.old -c 'echo {$()}'
{$}
; es.new -c 'echo {$()}'
{$()}

I don't love all these choices personally (I'd rather {~ x ()} than {~ x} and @ * {} rather than @ *{}), but concision is pretty valuable when stuffing these strings into the environment, so I won't fight too hard to add more characters than strictly necessary (Adding parens to {$} is necessary because {$} isn't actually valid syntax).

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