getflags fails with -f '%#x'. use doquote=needsrcquote.