Use Plan 9 file(1).

This commit is contained in:
rsc 2005-08-31 03:56:50 +00:00
parent e8dc77f7ae
commit 5fd59258dc

View file

@ -10,9 +10,9 @@ fn dbsrc{
}
fn go{
type=`{file $1}
type=`{9 file $1}
switch($type){
case *'script text'*
case *script*
plumbit $1 '(script)'
case *executable* *'plan 9 boot image'* *'shared object'*
plumbit `{dbsrc $1} '(executable)'