1O=$1 2shift 3objtype=$1 4shift 5 6cwd=`{basename -d `{pwd}} 7cwd=$cwd/$objtype 8bind -ac /sys/src/libsec/$objtype $cwd 9 10ls -p ../$objtype/*.[cs] >[2]/dev/null | sed 's/..$//' > /tmp/reduce.$pid 11# 12# if empty directory, just return the input files 13# 14if (! ~ $status '|') { 15 echo $* 16 rm /tmp/reduce.$pid 17 unmount $cwd 18 exit 0 19} 20echo $* | tr ' ' \012 | grep -v -f /tmp/reduce.$pid | tr \012 ' ' 21rm /tmp/reduce.$pid 22unmount $cwd 23