Lines Matching full:dir
5 mkdir dir
6 cd dir
24 "find dir -type l -a -type d -o -type p" "dir/fifo\n" "" ""
25 testing "-type l -type d -o -type p" "find dir -type l -type d -o -type p" \
26 "dir/fifo\n" "" ""
28 "find dir -type l -o -type d -a -type p" "dir/link\n" "" ""
29 testing "-type l -o -type d -type p" "find dir -type l -o -type d -type p" \
30 "dir/link\n" "" ""
32 "find dir -type l \( -type d -o -type l \)" "dir/link\n" "" ""
34 "find dir \( \( -type l \) \( -type d -o \( \( -type l \) \) \) \)" \
35 "dir/link\n" "" ""
37 "find dir \( -type p -o -type d \) -type p" "dir/fifo\n" "" ""
39 "find dir -type l -o -type d -type p -o -type f | sort" \
40 "dir/file\ndir/link\n" "" ""
42 "find dir -type l,f | sort" "dir/file\ndir/link\n" "" ""
47 "find dir -type f -a -print" "dir/file\n" "" ""
49 "find dir -type f -a \( -print -o -print \)" "dir/file\n" "" ""
59 "find dir -type f -user $USER -exec ls {} \\;" "dir/file\n" "" ""
61 "find dir -type l -newer dir/file -exec ls {} \\;" "dir/link\n" "" ""
63 "find dir/file -exec true \\; -print" "dir/file\n" "" ""
65 "find dir/file -exec false \\; -print" "" "" ""
80 "find dir -type f -exec ls {} 2>/dev/null || echo bad" "bad\n" "" ""
82 "find dir -type f -exec ls {} +" "dir/file\n" "" ""
85 testing "-name file" "find dir -name file" "dir/file\n" "" ""
86 testing "-name FILE" "find dir -name FILE" "" "" ""
88 testing "-iname file" "find dir -iname FILE" "dir/file\n" "" ""
89 testing "-iname FILE" "find dir -iname FILE" "dir/file\n" "" ""
93 "find dir -name 2>&1 | grep -o '[-]name'" "-name\n" "" ""
95 "find dir -iname 2>&1 | grep -o '[-]iname'" "-iname\n" "" ""
97 testing "" "find dir \( -iname file -o -iname missing \) -exec echo {} \;" \
98 "dir/file\n" "" ""
100 testing "-path glob" "find dir -path 'dir*e'" "dir/file\n" "" ""
101 testing "-wholename glob" "find dir -wholename 'dir*e'" "dir/file\n" "" ""
102 testing "-ipath glob" "find dir -ipath 'dIr*E'" "dir/file\n" "" ""
103 testing "-iwholename glob" "find dir -iwholename 'dIr*E'" "dir/file\n" "" ""
104 testing "-printf" "find dir -name file -printf '%f %p %P %s'" \
105 "file dir/file file 0" "" ""
106 testing "-printf .N" "find dir -name file -printf %.2f" "fi" "" ""
109 "find dir -name file -printf '\0 \007 \t \079' | xxd -p" \
113 testing "-printf \\c escape" "find dir -name f* -printf 'x\cy'" "xx" "" ""
116 ln -s does-not-exist dir/dangler
118 "LANG=C find -L dir -name file 2>&1" "dir/file\n" "" ""
119 rm -f dir/dangler
122 ln -s looper dir/looper
124 "LANG=C find -L dir -name file 2>err ; grep -q dir/looper err || echo missing error" \
125 "dir/file\n" "" ""
126 rm -f dir/looper err
128 testing "-false" "find dir -false" "" "" ""
129 testing "-true" "find dir/file -true" "dir/file\n" "" ""
132 "LANG=C find -L dir/missing-root 2>err ; grep -q dir/missing-root err || echo missing error" \
135 testing "-path match root" "find dir/f* -path dir/file" "dir/file\n" "" ""
136 testing "-name match root" "find dir/f* -name file" "dir/file\n" "" ""
145 testing 'empty arg' 'find "" dir -name file 2>/dev/null' 'dir/file\n' '' ''
147 rm -rf dir