Skip to content
Browse files

Recognize #!/bin/dash as shebang for Shell files (closes #3470986)

  • Loading branch information...
1 parent 5b02efb commit 85b5e08c471c505b59218b1a94df9b95a01cca06 @eht16 eht16 committed Jan 8, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/filetypes.c
View
2 src/filetypes.c
@@ -902,6 +902,8 @@ static GeanyFiletype *find_shebang(const gchar *utf8_filename, const gchar *line
ft = filetypes[GEANY_FILETYPES_SH];
else if (strncmp(basename_interpreter, "bash", 4) == 0)
ft = filetypes[GEANY_FILETYPES_SH];
+ else if (strncmp(basename_interpreter, "dash", 4) == 0)
+ ft = filetypes[GEANY_FILETYPES_SH];
else if (strncmp(basename_interpreter, "perl", 4) == 0)
ft = filetypes[GEANY_FILETYPES_PERL];
else if (strncmp(basename_interpreter, "python", 6) == 0)

0 comments on commit 85b5e08

Please sign in to comment.
Something went wrong with that request. Please try again.