Skip to content

Remove the leading > in recipe command#42

Merged
drdv merged 1 commit into
mainfrom
bugfix-makefile
Nov 4, 2025
Merged

Remove the leading > in recipe command#42
drdv merged 1 commit into
mainfrom
bugfix-makefile

Conversation

@drdv
Copy link
Copy Markdown
Owner

@drdv drdv commented Nov 4, 2025

Resolves #41

After introducing parameters <p1:v1,...>, doing $(VAR:>=) to remove the leaving > in a
recipe command is only possible if we make sure that after the closing > there is no
space (see the comments about "at the end of a word" in section 6.3.1 Substitution
References of the GNU Make manual. This is very brittle. Furthermore, while starting the
command line with > seems clear, it is a disaster waiting to happen because making the
"wrong" echo might redirect to something important.

This commit also removes a comment I made about RECIPE_COMMAND_LINE -- which was
wrong (on som any levels).
@drdv drdv merged commit 923b072 into main Nov 4, 2025
@drdv drdv deleted the bugfix-makefile branch November 4, 2025 19:55
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.

Potential bug in the tests

1 participant