Fix setgid/setuid typo
[findutils.git] / find / testsuite / find.gnu / posix-h.exp
blob4023b2579aff50df059992ae92629b96dbd9566f
1 # Verifies that the POSIX -H option is correctly implemented,
2 # but does this by using the GNU extension -printf.
3 exec rm -rf tmp
5 exec mkdir tmp
6 exec ln -s /etc/passwd tmp/LINK
7 exec ln -s /NOSUCHFILE tmp/BROKEN
9 # If the file is not on the command line, the link is not
10 # dereferenced, and so tmp/LINK should appear at depth 1
11 # but as type "l". tmp itself appears first at depth 0 as
12 # a directory.
13 find_start p { -H tmp/LINK tmp/BROKEN tmp -printf "H1: %y %d %p\n" }