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
Getopt thinks a path is a comment #1610
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. |
Author Name: Peter Nelson
Original Redmine Issue: 1610 from https://www.veripool.org
When passed a -f file.vc Getopt will strip any comments:
$line =~ s///.*$ //;
https://metacpan.org/release/Verilog-Perl/source/Getopt.pm#L84
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: