xref: /freebsd/bin/sh/tests/execution/set-C1.0 (revision f4f33ea0c752ff0f9bfad34991d5bbb54e71133d)
1# $FreeBSD$
2
3T=$(mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX") || exit
4trap 'rm -rf "$T"' 0
5
6set -C
7echo . >"$T/a" &&
8[ -s "$T/a" ] &&
9{ ! true >"$T/a"; } 2>/dev/null &&
10[ -s "$T/a" ] &&
11ln -s /dev/null "$T/b" &&
12true >"$T/b"
13