1 2 3 4 5 6
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/hash4.0 231535 2012-02-11 21:06:45Z jilles $ exec 3>&1 m=`hash nosuchtool 2>&1 >&3` r=$? [ "$r" != 0 ] && [ -n "$m" ]