tUse Plan 9 file(1). - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 5fd59258dca20b0c155aa8c28d443a2e608219fb
(DIR) parent e8dc77f7ae8ae6f9c7b4667b05cac03a11c17522
(HTM) Author: rsc <devnull@localhost>
Date: Wed, 31 Aug 2005 03:56:50 +0000
Use Plan 9 file(1).
Diffstat:
M bin/src | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/bin/src b/bin/src
t@@ -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)'