mirror of
https://github.com/opnsense/src.git
synced 2026-02-13 15:57:05 -05:00
An error message is written, the builtin is not executed, nonzero exit status is returned but the shell does not abort. This was already checked for special builtins and external commands, with the same consequences except that the shell aborts for special builtins. Obtained from: NetBSD
8 lines
106 B
Text
8 lines
106 B
Text
# $FreeBSD$
|
|
|
|
set -e
|
|
HOME=/
|
|
readonly HOME
|
|
cd /sbin
|
|
{ HOME=/bin cd; } 2>/dev/null || :
|
|
[ "$(pwd)" != /bin ]
|