Redirect stdout/stderr added to echo for MacPorts database query