1 # $FreeBSD: head/bin/sh/tests/builtins/cd8.0 230095 2012-01-13 23:32:27Z jilles $
3 # The exact wording of the error message is not standardized, but giving
4 # a description of the errno is useful.
12 errmsg=`cd "$1" 2>&1 >&3 3>&-`
15 *[Nn]ot\ a\ directory*)
18 printf "Wrong error message for %s: %s\n" "$1" "$errmsg"