clausing / scripts

Other
43 stars 10 forks source link

sigs.pl doesn't handle filenames with spaces on Windows #1

Open BarryGould opened 7 years ago

BarryGould commented 7 years ago

Hi, on Windows 8.1, 64-bit, with ActivePerl 5.18.1, sigs.pl gets an error if the file I'm running it against has spaces in the file path (quoted):

i:>perl "c:\Program Files (x86)\Utilities\SYS\sigs.pl" "o:\Downloads\UTILS\SQLiteDatabaseBrowserPortable_3.8.0_English (github).paf.exe" No filehandle passed at c:\Program Files (x86)\Utilities\SYS\sigs.pl line 53.

i:>perl "c:\Program Files (x86)\Utilities\SYS\sigs.pl" "Cisco ATA iTalkBB Shipm ent - Pitney Bowes.pdf" No filehandle passed at c:\Program Files (x86)\Utilities\SYS\sigs.pl line 53.

It does work on a file with no spaces, quoted or unquoted.

Thanks!

clausing commented 7 years ago

Thanx for reporting this, I'll take a look at it. I primarily run it on Linux, so the shell should have handled that, but I'll see if it is something I can fix in the script.