Use Plan 9 file(1).
This commit is contained in:
parent
e8dc77f7ae
commit
5fd59258dc
1 changed files with 2 additions and 2 deletions
4
bin/src
4
bin/src
|
|
@ -10,9 +10,9 @@ fn dbsrc{
|
||||||
}
|
}
|
||||||
|
|
||||||
fn go{
|
fn go{
|
||||||
type=`{file $1}
|
type=`{9 file $1}
|
||||||
switch($type){
|
switch($type){
|
||||||
case *'script text'*
|
case *script*
|
||||||
plumbit $1 '(script)'
|
plumbit $1 '(script)'
|
||||||
case *executable* *'plan 9 boot image'* *'shared object'*
|
case *executable* *'plan 9 boot image'* *'shared object'*
|
||||||
plumbit `{dbsrc $1} '(executable)'
|
plumbit `{dbsrc $1} '(executable)'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue