Imported Upstream version 4.5.14
[platform/upstream/findutils.git] / find / testsuite / find.gnu / posix-h.exp
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
4
5 exec mkdir tmp
6 exec ln -s /etc/passwd  tmp/LINK
7 exec ln -s /NOSUCHFILE  tmp/BROKEN
8
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" }