dmgerman / ninka

a license identification tool for Source Code
http://ninka.turingmachine.org
GNU General Public License v2.0
103 stars 30 forks source link

Ninka (comments) barfs on files containing spaces #30

Open armijnhemel opened 8 years ago

armijnhemel commented 8 years ago

another issue when the 'comments' program is used. I scanned a file in a directory that has a space. I am encountering this quite frequently. A simple test case:

$ /gpl/ninka/ninka-2.0-pre1/bin/ninka /tmp/test/space\ test/bzip2-1.0.6/bzip2.c execution of program [comments -c1 '/tmp/test/space\ test/bzip2-1.0.6/bzip2.c' 2> /dev/null] failed: status [1], error [] at /gpl/ninka/ninka-2.0-pre1/lib/Ninka/CommentExtractor.pm line 76.

If the comments program is not used it works.