/usr/bin/vifn is in pmccabe 2.6build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #!/bin/sh
if [ $# = 0 ]
then
echo "Usage: `basename $0` [filename/]functionname [...]" >&2
exit 2
fi
exec 3<&0
while [ $# != 0 ]
do
fname=`dirname "$1"`
fn=`basename "$1"`
if [ $fname = "." ]
then
if [ ! -f pmccabe.out ]
then
pmccabe *.[Cc] >pmccabe.out
fi
grep ": $fn$" pmccabe.out
else
pmccabe $fname | grep ": $fn"
fi |
sed 's/[()]/ /g' |
while read c1 c2 statements l1 nl filename linenumber fnname
do
vi +$linenumber $filename <&3
done
shift
done
|