Lines Matching full:file
24 touch file
33 if [ "$type" == file ]
39 type=file
50 rm -rf dir file && mkdir dir && touch file
51 testing "750 dir 640 file" \
52 "chmod 750 dir 640 file 2>/dev/null ||
53 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-x---\n-rwxr-x---\n" "" ""
55 rm -rf dir file && mkdir dir && touch file
56 testing "666 dir file" \
57 "chmod 666 dir file &&
58 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drw-rw-rw-\n-rw-rw-rw-\n" "" ""
60 rm -rf dir file && mkdir dir && touch file
62 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxrw-r-x\n-rwxrw-r-x\n" "" ""
65 rm -rf dir file && mkdir dir && touch file
66 testing "u=r dir file" "chmod u=r dir file &&
67 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "dr--r-xr-x\n-r--r--r--\n" "" ""
69 rm -rf dir file && mkdir dir && touch file
70 testing "u=w dir file" "chmod u=w dir file &&
71 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "d-w-r-xr-x\n--w-r--r--\n" "" ""
73 rm -rf dir file && mkdir dir && touch file
74 testing "u=x dir file" "chmod u=x dir file &&
75 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "d--xr-xr-x\n---xr--r--\n" "" ""
77 rm -rf dir file && mkdir dir && touch file
78 testing "u+r dir file" "chmod u+r dir file &&
79 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xr-x\n-rw-r--r--\n" "" ""
81 rm -rf dir file && mkdir dir && touch file
82 testing "u+w dir file" "chmod u+w dir file &&
83 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xr-x\n-rw-r--r--\n" "" ""
85 rm -rf dir file && mkdir dir && touch file
86 testing "u+x dir file" "chmod u+x dir file &&
87 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xr-x\n-rwxr--r--\n" "" ""
89 rm -rf dir file && mkdir dir && touch file
90 testing "u-r dir file" "chmod u-r dir file &&
91 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "d-wxr-xr-x\n--w-r--r--\n" "" ""
93 rm -rf dir file && mkdir dir && touch file
94 testing "u-w dir file" "chmod u-w dir file &&
95 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "dr-xr-xr-x\n-r--r--r--\n" "" ""
97 rm -rf dir file && mkdir dir && touch file
98 testing "u-x dir file" "chmod u-x dir file &&
99 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drw-r-xr-x\n-rw-r--r--\n" "" ""
101 rm -rf dir file && mkdir dir && touch file
102 testing "g=r dir file" "chmod g=r dir file &&
103 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr--r-x\n-rw-r--r--\n" "" ""
105 rm -rf dir file && mkdir dir && touch file
106 testing "g=w dir file" "chmod g=w dir file &&
107 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwx-w-r-x\n-rw--w-r--\n" "" ""
109 rm -rf dir file && mkdir dir && touch file
110 testing "g=x dir file" "chmod g=x dir file &&
111 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwx--xr-x\n-rw---xr--\n" "" ""
113 rm -rf dir file && mkdir dir && touch file
114 testing "g+r dir file" "chmod g+r dir file &&
115 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xr-x\n-rw-r--r--\n" "" ""
117 rm -rf dir file && mkdir dir && touch file
118 testing "g+w dir file" "chmod g+w dir file &&
119 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxrwxr-x\n-rw-rw-r--\n" "" ""
121 rm -rf dir file && mkdir dir && touch file
122 testing "g+x dir file" "chmod g+x dir file &&
123 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xr-x\n-rw-r-xr--\n" "" ""
125 rm -rf dir file && mkdir dir && touch file
126 testing "g-r dir file" "chmod g-r dir file &&
127 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwx--xr-x\n-rw----r--\n" "" ""
129 rm -rf dir file && mkdir dir && touch file
130 testing "g-w dir file" "chmod g-w dir file &&
131 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xr-x\n-rw-r--r--\n" "" ""
133 rm -rf dir file && mkdir dir && touch file
134 testing "g-x dir file" "chmod g-x dir file &&
135 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr--r-x\n-rw-r--r--\n" "" ""
137 rm -rf dir file && mkdir dir && touch file
138 testing "o=r dir file" "chmod o=r dir file &&
139 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xr--\n-rw-r--r--\n" "" ""
141 rm -rf dir file && mkdir dir && touch file
142 testing "o=w dir file" "chmod o=w dir file &&
143 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-x-w-\n-rw-r---w-\n" "" ""
145 rm -rf dir file && mkdir dir && touch file
146 testing "o=x dir file" "chmod o=x dir file &&
147 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-x--x\n-rw-r----x\n" "" ""
149 rm -rf dir file && mkdir dir && touch file
150 testing "o+r dir file" "chmod o+r dir file &&
151 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xr-x\n-rw-r--r--\n" "" ""
153 rm -rf dir file && mkdir dir && touch file
154 testing "o+w dir file" "chmod o+w dir file &&
155 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xrwx\n-rw-r--rw-\n" "" ""
157 rm -rf dir file && mkdir dir && touch file
158 testing "o+x dir file" "chmod o+x dir file &&
159 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xr-x\n-rw-r--r-x\n" "" ""
161 rm -rf dir file && mkdir dir && touch file
162 testing "o-r dir file" "chmod o-r dir file &&
163 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-x--x\n-rw-r-----\n" "" ""
165 rm -rf dir file && mkdir dir && touch file
166 testing "o-w dir file" "chmod o-w dir file &&
167 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xr-x\n-rw-r--r--\n" "" ""
169 rm -rf dir file && mkdir dir && touch file
170 testing "o-x dir file" "chmod o-x dir file &&
171 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xr--\n-rw-r--r--\n" "" ""
173 rm -rf dir file && mkdir dir && touch file
174 testing "a=r dir file" "chmod a=r dir file &&
175 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "dr--r--r--\n-r--r--r--\n" "" ""
177 rm -rf dir file && mkdir dir && touch file
178 testing "a=w dir file" "chmod a=w dir file &&
179 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "d-w--w--w-\n--w--w--w-\n" "" ""
181 rm -rf dir file && mkdir dir && touch file
182 testing "a=x dir file" "chmod a=x dir file &&
183 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "d--x--x--x\n---x--x--x\n" "" ""
185 rm -rf dir file && mkdir dir && touch file
186 testing "a+r dir file" "chmod a+r dir file &&
187 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xr-x\n-rw-r--r--\n" "" ""
189 rm -rf dir file && mkdir dir && touch file
190 testing "a+w dir file" "chmod a+w dir file &&
191 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxrwxrwx\n-rw-rw-rw-\n" "" ""
193 rm -rf dir file && mkdir dir && touch file
194 testing "a+x dir file" "chmod a+x dir file &&
195 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xr-x\n-rwxr-xr-x\n" "" ""
197 rm -rf dir file && mkdir dir && touch file
198 testing "a-r dir file" "chmod a-r dir file &&
199 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "d-wx--x--x\n--w-------\n" "" ""
201 rm -rf dir file && mkdir dir && touch file
202 testing "a-w dir file" "chmod a-w dir file &&
203 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "dr-xr-xr-x\n-r--r--r--\n" "" ""
205 rm -rf dir file && mkdir dir && touch file
206 testing "a-x dir file" "chmod a-x dir file &&
207 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drw-r--r--\n-rw-r--r--\n" "" ""
209 rm -rf dir file && mkdir dir && touch file
210 testing "=r dir file" "chmod =r dir file &&
211 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "dr--r--r--\n-r--r--r--\n" "" ""
213 rm -rf dir file && mkdir dir && touch file
214 testing "=w dir file" "chmod =w dir file &&
215 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "d-w-------\n--w-------\n" "" ""
217 rm -rf dir file && mkdir dir && touch file
218 testing "=x dir file" "chmod =x dir file &&
219 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "d--x--x--x\n---x--x--x\n" "" ""
221 rm -rf dir file && mkdir dir && touch file
222 testing "+r dir file" "chmod +r dir file &&
223 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xr-x\n-rw-r--r--\n" "" ""
225 rm -rf dir file && mkdir dir && touch file
226 testing "+w dir file" "chmod +w dir file &&
227 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xr-x\n-rw-r--r--\n" "" ""
229 rm -rf dir file && mkdir dir && touch file
230 testing "+x dir file" "chmod +x dir file &&
231 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drwxr-xr-x\n-rwxr-xr-x\n" "" ""
233 rm -rf dir file && mkdir dir && touch file
234 testing "-r dir file" "chmod -r dir file &&
235 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "d-wx--x--x\n--w-------\n" "" ""
237 rm -rf dir file && mkdir dir && touch file
238 testing "-w dir file" "chmod -w dir file &&
239 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "dr-xr-xr-x\n-r--r--r--\n" "" ""
241 rm -rf dir file && mkdir dir && touch file
242 testing "-x dir file" "chmod -x dir file &&
243 ls -ld dir file | cut -d' ' -f 1 | cut -d. -f 1" "drw-r--r--\n-rw-r--r--\n" "" ""
246 rm -rf dir file