summary refs log tree commit diff
path: root/bin/1sh/tests/builtins/type2.0
blob: 9c8efc7776d2982dfd6826131633059fc871d429 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $FreeBSD: releng/12.1/bin/sh/tests/builtins/type2.0 201344 2009-12-31 17:44:24Z jilles $

failures=0

check() {
	if ! eval "$*"; then
		echo "Failed: $*"
		: $((failures += 1))
	fi
}

check 'PATH=/libexec type ld-elf.so.1 >/dev/null'
check '! PATH=/libexec type ls 2>/dev/null'

PATH=/libexec:$PATH

check 'type ld-elf.so.1 >/dev/null'

PATH=/libexec

check 'type ld-elf.so.1 >/dev/null'
check '! type ls 2>/dev/null'
check 'PATH=/bin type ls >/dev/null'
check '! PATH=/bin type ld-elf.so.1 2>/dev/null'

exit $((failures > 0))
amp;follow=1'>Match lex/yacc %% %{ %} lines as MacroJune McEnroe 2020-12-29Match top-level C definitions as IdentifierTagJune McEnroe 2020-12-29Match C type declarations as IdentifierTagJune McEnroe 2020-12-29Match function-like macro definitions as IdentifierTagJune McEnroe 2020-12-29Reconfigure C macro start conditionsJune McEnroe 2020-12-29Document HTML class namesJune McEnroe 2020-12-29Rename Tag class to IdentifierTagJune McEnroe 2020-12-29Change HTML class from hi to hilexJune McEnroe You can tell I was just copying the HTML code huh. 2020-12-29Add hilex HTML outputJune McEnroe