Getopt thinks a path is a comment #1610
Closed
Comments
Original Redmine Comment Indeed, good point & other simulators handle this. To give you author credit, do you signoff for me to git commit with your name and email address? |
Original Redmine Comment No need for author credit, I'd rather not have my email address in more places that get spam =p |
Original Redmine Comment That's why I ask ;) Pushed to git towards eventual 3.470 release. |
Released in 3.470 on 2020-1-6. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Author Name: Peter Nelson
Original Redmine Issue: 1610 from https://www.veripool.org
When passed a -f file.vc Getopt will strip any comments:
https://metacpan.org/release/Verilog-Perl/source/Getopt.pm#L84
$line =~ s///.*$//;
The problem is paths can have // in them - such as /home/foo//bar. This line will spuriously strip the path to be /home/foo.
The regex needs to check the comment has a preceding start-of-line or space:
$line =~ s/(?:^|\s)//.*$//;
The text was updated successfully, but these errors were encountered: