File: xtype.exp

package info (click to toggle)
findutils 4.2.28-1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 7,460 kB
  • ctags: 2,635
  • sloc: ansic: 28,555; sh: 4,519; makefile: 616; exp: 419; sed: 16
file content (8 lines) | stat: -rw-r--r-- 256 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
# checks for the -xtype test.
exec rm -rf tmp

exec mkdir tmp
exec ln -s /etc/passwd  tmp/LINK
exec ln -s /NOSUCHFILE  tmp/BROKEN

find_start p { -H tmp/LINK tmp/BROKEN tmp -xtype l -printf "xtype is l: %p\n" , \! -xtype l -printf "xtype is not l: %p\n" }