Thanks to visit codestin.com
Credit goes to github.com

Skip to content

--include and file in a relative path are broken #16

@xdbr

Description

@xdbr

When using --include in combination with an infile in a relative directory, gpp is broken.

The following simple tests can illustrate this:

While this works as expected:

echo '#file' > test.txt && echo '#file' > inc.gpp && cat test.txt && gpp --include inc.gpp test.txt
#file
inc.gpptest.txt

Unfortunately, this does not:

mkdir -p test/ && echo '#file' > test/test.txt && echo '#file' > inc.gpp && cat test/test.txt &&  gpp --include inc.gpp test/test.txt
#file
test/test.txt:1: error: Requested include file not found

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions