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

The error variable caused by '$' #7

Open
PosiHydr opened this issue Jul 25, 2022 · 0 comments
Open

The error variable caused by '$' #7

PosiHydr opened this issue Jul 25, 2022 · 0 comments

Comments

@PosiHydr
Copy link

PosiHydr commented Jul 25, 2022

When I was writing Makefile
all:
@echo '$/'
Its output is not $/, but a newline character

all:
@echo '$_'
Its output is the make path of my operating system.

So I'm guessing that make does the same thing as calling shell environment variables when dealing with symbols like $_, $a, $b.

This caused me to be unable to use $ in regular expressions in Makefile.

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

No branches or pull requests

1 participant