Open mscharley opened 7 years ago
Filenames take priority over shebangs currently.
Damn, a file called simply install
is still registered as being a file of type install
. That's an unfortunate conflict, but I imagine it's probably necessary to handle things like Rakefile
and similar that are just bare names.
For context, https://github.com/mscharley/dotfiles/blob/master/install.pl which I've simply renamed for now. Maybe this should be an issue against atom/language-php then because I do know that some PHP frameworks use *.install
frequently. Still seems like a bad idea to take over all files called install
though.
Prerequisites
Description
The
#!/usr/bin/env perl
hashbang doesn't trigger Perl as the autodetected language. In my setup it defaults to PHP instead.Steps to Reproduce
Create a new file called
install
.Add the following code to the file:
Set the file type to "Autodetect".
Expected behavior: The autodetected language is Perl.
Actual behavior: The autodetected language is PHP.
Reproduces how often:
100% reproduction with the filename
install
. Seems to be tied to this specific filename and I'm not sure why - I triedinstall.pl
andfoo
and both got autodetected correctly as Perl files.Versions