1 # $FreeBSD: src/tools/regression/bin/sh/builtins/cd3.0,v 1.1 2011/05/20 22:55:18 jilles Exp $
3 # If fully successful, cd -Pe must be like cd -P.
18 # If cd -Pe cannot chdir, the exit status must be greater than 1.
20 v=$( (cd -Pe /var/empty/nonexistent) 2>&1 >/dev/null)
21 [ $? -gt 1 ] && [ -n "$v" ]