]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/execution/set-C1.0
b7d5a4c55ab93b259704ab3af6ad665353c343c0
[apple/shell_cmds.git] / sh / tests / execution / set-C1.0
1 # $FreeBSD: head/bin/sh/tests/execution/set-C1.0 308229 2016-11-02 22:33:37Z jilles $
2
3 T=$(mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX") || exit
4 trap 'rm -rf "$T"' 0
5
6 set -C
7 echo . >"$T/a" &&
8 [ -s "$T/a" ] &&
9 { ! true >"$T/a"; } 2>/dev/null &&
10 [ -s "$T/a" ] &&
11 ln -s /dev/null "$T/b" &&
12 true >"$T/b"