commit 5fd59258dca20b0c155aa8c28d443a2e608219fb
parent e8dc77f7ae8ae6f9c7b4667b05cac03a11c17522
Author: rsc <devnull@localhost>
Date: Wed, 31 Aug 2005 03:56:50 +0000
Use Plan 9 file(1).
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/src b/bin/src
@@ -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)'