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

Pathnames beginning with more than one slash cause invalid output #4

Open
da-x opened this issue Jun 10, 2016 · 0 comments
Open

Pathnames beginning with more than one slash cause invalid output #4

da-x opened this issue Jun 10, 2016 · 0 comments

Comments

@da-x
Copy link

da-x commented Jun 10, 2016

If we pass pathnames starting with more than one slash to -include, cpphs generates invalid output. These are valid UNIX pathnames. I've tested with version 1.20.1 on Linux.

Example:

$ touch empty.hs
$ cpphs --cpp -include //dev/null empty.hs
#line 1 "test.hs"
#line 1 "
#line 2 "test.hs"
#line 1 "test.hs"

If I remove the extra '/', I get a good output:

$ touch empty.hs
$ cpphs --cpp -include /dev/null empty.hs
#line 1 "test.hs"
#line 1 "/dev/null"
#line 2 "test.hs"
#line 1 "test.hs"
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