]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/type.right
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / type.right
CommitLineData
7117c2d2
JA
1./type.tests: line 9: type: -r: invalid option
2type: usage: type [-afptP] name [name ...]
3./type.tests: line 12: type: notthere: not found
d166f048
JA
4function
5keyword
d166f048
JA
6builtin
7file
8file
cce855bc 9file
d166f048
JA
10func is a function
11func ()
12{
13 echo this is func
14}
15while is a shell keyword
16while is a shell keyword
d166f048
JA
17builtin is a shell builtin
18/bin/sh is /bin/sh
19func
20func is a function
21func ()
22{
23 echo this is func
24}
25while
26while is a shell keyword
95732b49 27./type.tests: line 43: type: m: not found
b80f6443
JA
28alias m='more'
29alias m='more'
30m is aliased to `more'
31alias
d166f048
JA
32alias m='more'
33alias m='more'
34alias m='more'
35m is aliased to `more'
36builtin
37builtin is a shell builtin
38/bin/sh
39/bin/sh is /bin/sh
95732b49
JA
40./type.tests: line 65: type: func: not found
41./type.tests: line 67: type: m: not found
d166f048
JA
42/bin/sh
43/tmp/bash
44bash is hashed (/tmp/bash)
cce855bc
JA
45file
46hits command
cce855bc 47 3 /tmp/bash
7117c2d2 48 1 /bin/sh
3185942a
JA
49f is a function
50f ()
51{
52 v='^A'
53}
54foo is a function
55foo ()
56{
57 echo $(<x1)
58}
59bar is a function
60bar ()
61{
62 echo $(<x1)
63}
0001803f
CR
64foo is a function
65foo ()
66{
67 echo;
68 cat <<END
69bar
70END
71
72 cat <<EOF
73qux
74EOF
75
76}
77
78bar
79qux
80
81bar
82qux
495aee44
CR
83foo is a function
84foo ()
85{
86 rm -f a b c;
87 for f in a b c;
88 do
89 cat >> ${f} <<-EOF
90file
91EOF
92
93 done
94 grep . a b c
95}
96a:file
97b:file
98c:file
ac50fbac
CR
99bb is a function
100bb ()
101{
102 ( cat <<EOF
103foo
104bar
105EOF
106 )
107 echo after subshell
108}
109mkcoprocs is a function
110mkcoprocs ()
111{
112 coproc a {
113 cat <<EOF1
114producer 1
115EOF1
116
117 }
118 coproc b {
119 cat <<EOF2
120producer 2
121EOF2
122
123 }
124 echo "coprocs created"
125}
126mkcoprocs is a function
127mkcoprocs ()
128{
129 coproc COPROC ( b cat <<EOF
130heredoc
131body
132EOF
133 )
134 echo "coprocs created"
135}