- fixed compilation problem that can make 'make check' fail on some systems
- fixed a test problem when not using GNU sed
- in strings # comments are not considered
The second problem was due to a usage of sed with a regular expression which seems to work with GNU sed, but not with BSD sed (actually I don't know which version misbehaves). The solution was provided by Bob White (thanks again Bob!) and it is also online here.
The problem was that I was using this sed command line:
sed -e "s/^\(\([^\/]*\)\/\)\+//g"in order to remove the directories of a path, while it was sufficient to use this simpler command line:
sed -e "s/^.*\///g"since the * is greedy and will match the last /. Well done Bob! :-)