13 lines
226 B
Plaintext
13 lines
226 B
Plaintext
# $FreeBSD$
|
|
|
|
T=$(mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX") || exit
|
|
trap 'rm -rf "$T"' 0
|
|
|
|
set -C
|
|
echo . >"$T/a" &&
|
|
[ -s "$T/a" ] &&
|
|
{ ! true >"$T/a"; } 2>/dev/null &&
|
|
[ -s "$T/a" ] &&
|
|
ln -s /dev/null "$T/b" &&
|
|
true >"$T/b"
|