johnno1962 / InjectionApp

Issue Tracking Repo for Injection as an App
MIT License
111 stars 7 forks source link

"Learnt compile failed" if path to file contains "&" #21

Open kohtenko opened 7 years ago

kohtenko commented 7 years ago

Perhaps simple escaping this symbol will solve this issue.

johnno1962 commented 7 years ago

I think I’ve tried to resolve this in the past and not found it so straightforward.

johnno1962 commented 7 years ago

The relevant line is 229 in the injectSource.pl script bundle. You could try:

   (my $escaped = $selectedFile) =~ s/([‘ &])/\\$1/g;