Skip to content

Uniform usage of print or _print() helper#582

Merged
jaromil merged 1 commit into
dyne:masterfrom
Narrat:optim/print
Sep 17, 2025
Merged

Uniform usage of print or _print() helper#582
jaromil merged 1 commit into
dyne:masterfrom
Narrat:optim/print

Conversation

@Narrat

@Narrat Narrat commented Aug 26, 2025

Copy link
Copy Markdown
Collaborator

As a zsh script the builtin print should be used instead of echo. And mostly done that way. Therefore replace the few echo calls with print.

And additionally replace cat construct for printing the system utils. This part would even appear if "tomb --version -q" would be called (nonsensical in a way). With this only the empty print will cause newlines. But cannot be replaced as the current wrapper _print doesn't allow empty input.
And those cat thingies always look ugly and it offers no real benefit in that location.

As a zsh script the builtin print should be used instead of echo. And
mostly done that way. Therefore replace the few echo calls with print.

And additionally replace cat construct for printing the system utils.
This part would even appear if "tomb --version -q" would be called
(nonsensical in a way). With this only the empty print will cause
newlines. But cannot be replaced as the current wrapper _print doesn't
allow empty input.
And those cat thingies always look ugly and it offers no real benefit
in that location.
@jaromil

jaromil commented Sep 17, 2025

Copy link
Copy Markdown
Member

Very nice cleanup! also print is a built-in so this speeds up things a bit.

@jaromil jaromil merged commit a902b90 into dyne:master Sep 17, 2025
2 checks passed
@Narrat Narrat deleted the optim/print branch September 21, 2025 19:00
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