File: follow-basic.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 (10 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
# Verifies that the -follow option is correctly implemented,
# but does this by using the GNU extension -printf.
exec rm -rf tmp

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

# Links should all be dereferenced unless they are broken.
find_start p {  tmp/LINK tmp/BROKEN tmp -follow -printf "%y %d %p\n" }