aboutsummaryrefslogtreecommitdiff
path: root/bin/src
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-08-31 03:56:50 +0000
committerrsc <devnull@localhost>2005-08-31 03:56:50 +0000
commit5fd59258dca20b0c155aa8c28d443a2e608219fb (patch)
tree72d852f35d8b94bb0e35b0fd2ae50cdd33df6f15 /bin/src
parente8dc77f7ae8ae6f9c7b4667b05cac03a11c17522 (diff)
downloadplan9port-5fd59258dca20b0c155aa8c28d443a2e608219fb.tar.gz
plan9port-5fd59258dca20b0c155aa8c28d443a2e608219fb.tar.bz2
plan9port-5fd59258dca20b0c155aa8c28d443a2e608219fb.zip
Use Plan 9 file(1).
Diffstat (limited to 'bin/src')
-rwxr-xr-xbin/src4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/src b/bin/src
index 450c3b47..03987627 100755
--- 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)'