Skip to content

The error variable caused by '$' #7

@ghost

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.

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