% uname -v FreeBSD 9.2-RELEASE-p10 #0: Tue Jul 8 10:48:24 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC % pkg -v 1.3.4 Decided that it was time to cleanup the pkg's installed on my system. The other day it was spending a lot of time updating a port, which was a left over dependency of something else.... Ran pkg_rmleaves....which then spent a long time, and found no further leaves to remove (which didn't make sense, since I know there would be at least be many fpc-* ports still to remove.) After some digging around, narrowed down on the '-q' (quiet) option. pkg_rmleaves uses "pkg delete -q -y <pkg>" "pkg delete <pkg>" works, of course. "pkg delete -y <pkg>" works. "pkg delete -q <pkg>" and "pkg delete -q -y <pkg>" don't work...though its spends some time. "pkg delete -qn <pkg>" works. .... Looks like query_yesno() is the only way that rc can become true, and its skipped if quiet is set. If query_yesno() were called, it understands quiet...to return 'yes or default'...
over to maintainer team...