Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Getopt thinks a path is a comment #1610
Author Name: Peter Nelson
When passed a -f file.vc Getopt will strip any comments:
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:
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?