+cap() {
+ dsr=$1
+ shift
+ if [ -d debug ]; then
+ cat | sort -u > debug/$n.$dsr.in
+ cat debug/$n.$dsr.in | "$@" | sort -u > debug/$n.$dsr.out
+ comm -23 debug/$n.$dsr.out debug/$n.$dsr.in > debug/$n.+.$dsr
+ cat debug/$n.$dsr.out
+ rm debug/$n.$dsr.out debug/$n.$dsr.in
+ else
+ "$@"
+ fi
+}
+