10 echo $sym | db $1 | sed '1d;/symbol not found/d;s/.*\(\) //'
14 type=`{file <$1 | sed 's/stdin: //'}
17 plumbit $1 '(ascii file)'
18 case 'rc executable file'
19 plumbit $1 '(rc executable)'
20 case *executable* *'plan 9 boot image'*
21 plumbit `{dbsrc $1} '(executable)'
23 echo 'src: can''t find source for '$1 - unrecognized type $type >[1=2]
30 echo usage: 'src [-n] [-s symbol] executable ...'>[1=2]
41 # add main in case symbol is undefined
53 if not if(test -f /bin/$i) go /bin/$i
54 if not if(test -f /bin/*/$i) go /bin/*/$i
55 if not if(test -f /bin/*/*/$i) go /bin/*/*/$i
56 if not echo 'src: can''t find '$i