File: samefile-link.exp

package info (click to toggle)
findutils 4.10.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,108 kB
  • sloc: ansic: 126,635; sh: 11,486; yacc: 1,852; makefile: 844; exp: 839; python: 66; sed: 16
file content (9 lines) | stat: -rw-r--r-- 280 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
# test for -samefile
exec rm -rf tmp
exec mkdir tmp tmp/one tmp/two
exec touch tmp/file1 tmp/file2
exec ln    tmp/file1 tmp/one/link
exec ln -s tmp/file1 tmp/one/symlink
exec ln    tmp/file2 tmp/two/link
find_start p {tmp/one tmp/two -samefile tmp/file1 -print}
# exec rm -rf tmp