--- magic/Magdir/commands +++ magic/Magdir/commands 2008-04-14 17:27:49.969133137 +0200 @@ -3,81 +3,81 @@ # commands: file(1) magic for various shells and interpreters # #0 string : shell archive or script for antique kernel text -0 string/b #!\ /bin/sh POSIX shell script text executable +0 string/b #!\ /bin/sh POSIX shell script text !:mime application/x-shellscript -0 string/b #!\ /bin/csh C shell script text executable +0 string/b #!\ /bin/csh C shell script text !:mime application/x-shellscript # korn shell magic, sent by George Wu, gwu@clyde.att.com -0 string/b #!\ /bin/ksh Korn shell script text executable +0 string/b #!\ /bin/ksh Korn shell script text !:mime application/x-shellscript -0 string/b #!\ /bin/tcsh Tenex C shell script text executable +0 string/b #!\ /bin/tcsh Tenex C shell script text !:mime application/x-shellscript -0 string/b #!\ /usr/bin/tcsh Tenex C shell script text executable +0 string/b #!\ /usr/bin/tcsh Tenex C shell script text !:mime application/x-shellscript -0 string/b #!\ /usr/local/tcsh Tenex C shell script text executable +0 string/b #!\ /usr/local/tcsh Tenex C shell script text !:mime application/x-shellscript -0 string/b #!\ /usr/local/bin/tcsh Tenex C shell script text executable +0 string/b #!\ /usr/local/bin/tcsh Tenex C shell script text !:mime application/x-shellscript # # zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson) -0 string/b #!\ /bin/zsh Paul Falstad's zsh script text executable +0 string/b #!\ /bin/zsh Paul Falstad's zsh script text !:mime application/x-shellscript -0 string/b #!\ /usr/bin/zsh Paul Falstad's zsh script text executable +0 string/b #!\ /usr/bin/zsh Paul Falstad's zsh script text !:mime application/x-shellscript -0 string/b #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable +0 string/b #!\ /usr/local/bin/zsh Paul Falstad's zsh script text !:mime application/x-shellscript -0 string/b #!\ /usr/local/bin/ash Neil Brown's ash script text executable +0 string/b #!\ /usr/local/bin/ash Neil Brown's ash script text !:mime application/x-shellscript -0 string/b #!\ /usr/local/bin/ae Neil Brown's ae script text executable +0 string/b #!\ /usr/local/bin/ae Neil Brown's ae script text !:mime application/x-shellscript -0 string/b #!\ /bin/nawk new awk script text executable +0 string/b #!\ /bin/nawk new awk script text !:mime application/x-nawk -0 string/b #!\ /usr/bin/nawk new awk script text executable +0 string/b #!\ /usr/bin/nawk new awk script text !:mime application/x-nawk -0 string/b #!\ /usr/local/bin/nawk new awk script text executable +0 string/b #!\ /usr/local/bin/nawk new awk script text !:mime application/x-nawk -0 string/b #!\ /bin/gawk GNU awk script text executable +0 string/b #!\ /bin/gawk GNU awk script text !:mime application/x-gawk -0 string/b #!\ /usr/bin/gawk GNU awk script text executable +0 string/b #!\ /usr/bin/gawk GNU awk script text !:mime application/x-gawk -0 string/b #!\ /usr/local/bin/gawk GNU awk script text executable +0 string/b #!\ /usr/local/bin/gawk GNU awk script text !:mime application/x-gawk # -0 string/b #!\ /bin/awk awk script text executable +0 string/b #!\ /bin/awk awk script text !:mime application/x-awk -0 string/b #!\ /usr/bin/awk awk script text executable +0 string/b #!\ /usr/bin/awk awk script text !:mime application/x-awk # update to distinguish from *.vcf files # this is broken because postscript has /EBEGIN{ for example. #0 search/Bb BEGIN { awk script text # AT&T Bell Labs' Plan 9 shell -0 string/b #!\ /bin/rc Plan 9 rc shell script text executable +0 string/b #!\ /bin/rc Plan 9 rc shell script text # bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de) -0 string/b #!\ /bin/bash Bourne-Again shell script text executable +0 string/b #!\ /bin/bash Bourne-Again shell script text !:mime application/x-shellscript -0 string/b #!\ /usr/bin/bash Bourne-Again shell script text executable +0 string/b #!\ /usr/bin/bash Bourne-Again shell script text !:mime application/x-shellscript -0 string/b #!\ /usr/local/bash Bourne-Again shell script text executable +0 string/b #!\ /usr/local/bash Bourne-Again shell script text !:mime application/x-shellscript -0 string/b #!\ /usr/local/bin/bash Bourne-Again shell script text executable +0 string/b #!\ /usr/local/bin/bash Bourne-Again shell script text !:mime application/x-shellscript # using env 0 string #!/usr/bin/env a ->15 string >\0 %s script text executable +>15 string >\0 %s script text 0 string #!\ /usr/bin/env a ->16 string >\0 %s script text executable +>16 string >\0 %s script text # PHP scripts # Ulf Harnhammar 0 search/1/c = # Send additions to -0 search/1/b #!\ /bin/perl Perl script text executable +0 search/1/b #!\ /bin/perl Perl script text !:mime application/x-perl 0 search/1 eval\ "exec\ /bin/perl Perl script text !:mime application/x-perl -0 search/1/b #!\ /usr/bin/perl Perl script text executable +0 search/1/b #!\ /usr/bin/perl Perl script text !:mime application/x-perl 0 search/1 eval\ "exec\ /usr/bin/perl Perl script text !:mime application/x-perl -0 search/1/b #!\ /usr/local/bin/perl Perl script text executable +0 search/1/b #!\ /usr/local/bin/perl Perl script text !:mime application/x-perl 0 search/1 eval\ "exec\ /usr/local/bin/perl Perl script text !:mime application/x-perl --- magic/Magdir/python +++ magic/Magdir/python 2006-03-24 14:51:26.000000000 +0100 @@ -4,7 +4,7 @@ # # From: David Necas # often the module starts with a multiline string -0 string """ a python script text executable +0 string """ a python script text # MAGIC as specified in Python/import.c (1.5 to 2.3.0a) # 20121 ( YEAR - 1995 ) + MONTH + DAY (little endian followed by "\r\n" 0 belong 0x994e0d0a python 1.5/1.6 byte-compiled --- magic/Magdir/varied.script +++ magic/Magdir/varied.script 2007-03-21 11:22:09.000000000 +0100 @@ -2,12 +2,12 @@ # varied.script: file(1) magic for various interpreter scripts 0 string #!\ / a ->3 string >\0 %s script text executable +>3 string >\0 %s script text 0 string #!\t/ a ->3 string >\0 %s script text executable +>3 string >\0 %s script text 0 string #!/ a ->2 string >\0 %s script text executable -0 string #!\ script text executable +>2 string >\0 %s script text +0 string #!\ script text >3 string >\0 for %s # From: arno