Lines Matching refs:opt
227 for opt in \
241 do old=$opt
242 if [[ ! -o $opt ]]
243 then old=no$opt
246 set --$opt || err_exit "set --$opt failed"
247 [[ -o $opt ]] || err_exit "[[ -o $opt ]] failed"
248 [[ -o no$opt ]] && err_exit "[[ -o no$opt ]] failed"
249 [[ -o no-$opt ]] && err_exit "[[ -o no-$opt ]] failed"
250 [[ -o no_$opt ]] && err_exit "[[ -o no_$opt ]] failed"
251 [[ -o ?$opt ]] || err_exit "[[ -o ?$opt ]] failed"
252 [[ -o ?no$opt ]] || err_exit "[[ -o ?no$opt ]] failed"
253 [[ -o ?no-$opt ]] || err_exit "[[ -o ?no-$opt ]] failed"
254 [[ -o ?no_$opt ]] || err_exit "[[ -o ?no_$opt ]] failed"
256 set --no$opt || err_exit "set --no$opt failed"
257 [[ -o no$opt ]] || err_exit "[[ -o no$opt ]] failed"
258 [[ -o $opt ]] && err_exit "[[ -o $opt ]] failed"
260 set --no-$opt || err_exit "set --no-$opt failed"
261 [[ -o no$opt ]] || err_exit "[[ -o no$opt ]] failed"
262 [[ -o $opt ]] && err_exit "[[ -o $opt ]] failed"
264 set --no_$opt || err_exit "set --no_$opt failed"
265 [[ -o no$opt ]] || err_exit "[[ -o no$opt ]] failed"
266 [[ -o $opt ]] && err_exit "[[ -o $opt ]] failed"
268 set -o $opt || err_exit "set -o $opt failed"
269 [[ -o $opt ]] || err_exit "[[ -o $opt ]] failed"
270 set -o $opt=1 || err_exit "set -o $opt=1 failed"
271 [[ -o $opt ]] || err_exit "[[ -o $opt ]] failed"
272 set -o no$opt=0 || err_exit "set -o no$opt=0 failed"
273 [[ -o $opt ]] || err_exit "[[ -o $opt ]] failed"
274 set --$opt=1 || err_exit "set --$opt=1 failed"
275 [[ -o $opt ]] || err_exit "[[ -o $opt ]] failed"
276 set --no$opt=0 || err_exit "set --no$opt=0 failed"
277 [[ -o $opt ]] || err_exit "[[ -o $opt ]] failed"
279 set -o no$opt || err_exit "set -o no$opt failed"
280 [[ -o no$opt ]] || err_exit "[[ -o no$opt ]] failed"
281 set -o $opt=0 || err_exit "set -o $opt=0 failed"
282 [[ -o no$opt ]] || err_exit "[[ -o no$opt ]] failed"
283 set -o no$opt=1 || err_exit "set -o no$opt=1 failed"
284 [[ -o no$opt ]] || err_exit "[[ -o no$opt ]] failed"
285 set --$opt=0 || err_exit "set --$opt=0 failed"
286 [[ -o no$opt ]] || err_exit "[[ -o no$opt ]] failed"
287 set --no$opt=1 || err_exit "set --no$opt=1 failed"
288 [[ -o no$opt ]] || err_exit "[[ -o no$opt ]] failed"
290 set -o no-$opt || err_exit "set -o no-$opt failed"
291 [[ -o no-$opt ]] || err_exit "[[ -o no-$opt ]] failed"
293 set -o no_$opt || err_exit "set -o no_$opt failed"
294 [[ -o no_$opt ]] || err_exit "[[ -o no_$opt ]] failed"
296 set +o $opt || err_exit "set +o $opt failed"
297 [[ -o no$opt ]] || err_exit "[[ -o no$opt ]] failed"
299 set +o no$opt || err_exit "set +o no$opt failed"
300 [[ -o $opt ]] || err_exit "[[ -o $opt ]] failed"
302 set +o no-$opt || err_exit "set +o no-$opt failed"
303 [[ -o $opt ]] || err_exit "[[ -o $opt ]] failed"
305 set +o no_$opt || err_exit "set +o no_$opt failed"
306 [[ -o $opt ]] || err_exit "[[ -o $opt ]] failed"
311 for opt in \
314 do [[ -o $opt ]]
316 [[ -o no$opt ]]
320 *) err_exit "[[ -o $opt ]] == [[ -o no$opt ]]" ;;
324 for opt in \
326 do if [[ -o ?$opt ]]
327 then err_exit "[[ -o ?$opt ]] should fail"
329 if [[ -o ?no$opt ]]
330 then err_exit "[[ -o ?no$opt ]] should fail"
341 for opt
342 do case $opt in
343 --not*) opt=${opt/--/--no} ;;
344 --no*) opt=${opt/--no/--} ;;
345 --*) opt=${opt/--/--no} ;;
347 off="$off $opt"