From: Reuben Thomas Date: Wed, 27 Jul 2016 09:46:29 +0000 (+0000) Subject: ruby: make hash-bang magic take precedence over text matches X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c9b8c6319c2c757462bea6649d87dc751313b1c;p=file ruby: make hash-bang magic take precedence over text matches In particular, precedence over incomplete matches that produce no text --- diff --git a/magic/Magdir/ruby b/magic/Magdir/ruby index 26630f3a..cc3abd04 100644 --- a/magic/Magdir/ruby +++ b/magic/Magdir/ruby @@ -1,18 +1,22 @@ #------------------------------------------------------------------------------ -# $File: ruby,v 1.5 2010/07/21 16:47:17 christos Exp $ +# $File: ruby,v 1.6 2016/07/27 09:46:29 rrt Exp $ # ruby: file(1) magic for Ruby scripting language # URL: http://www.ruby-lang.org/ # From: Reuben Thomas # Ruby scripts 0 search/1/w #!\ /usr/bin/ruby Ruby script text executable +!:strength + 15 !:mime text/x-ruby 0 search/1/w #!\ /usr/local/bin/ruby Ruby script text executable +!:strength + 15 !:mime text/x-ruby 0 search/1 #!/usr/bin/env\ ruby Ruby script text executable +!:strength + 15 !:mime text/x-ruby 0 search/1 #!\ /usr/bin/env\ ruby Ruby script text executable +!:strength + 15 !:mime text/x-ruby # What looks like ruby, but does not have a shebang