Skip to content

The error variable caused by '$' #7

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions