~ubuntu-branches/ubuntu/trusty/bash/trusty-security

« back to all changes in this revision

Viewing changes to tests/builtins.right

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-03-03 22:52:05 UTC
  • mfrom: (1.3.5) (2.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20140303225205-87ltrt5kspeq0g1b
Tags: 4.3-1ubuntu1
* Merge with Debian; remaining changes:
  - skel.bashrc:
    - Run lesspipe.
    - Enable ls aliases.
    - Set options in ll alias to -alF.
    - Define an alert alias.
    - Enabled colored grep aliases.
  - etc.bash.bashrc:
    - Add sudo hint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
a
 
2
end-1
 
3
a
 
4
end-2
 
5
a:x
 
6
end-a
 
7
b:x
 
8
end-b
 
9
c:x
 
10
end-c
 
11
end-3
 
12
a:x
 
13
end
 
14
a
 
15
b
 
16
c
 
17
end-1
 
18
a
 
19
b
 
20
c
 
21
end-2
 
22
a:x
 
23
a:y
 
24
a:z
 
25
end-a
 
26
b:x
 
27
b:y
 
28
b:z
 
29
end-b
 
30
c:x
 
31
c:y
 
32
c:z
 
33
end-c
 
34
end-3
 
35
a:x
 
36
b:x
 
37
c:x
 
38
end
 
39
$BVAR
 
40
$BVAR
 
41
$BVAR
 
42
$BVAR
 
43
foo
 
44
bar
 
45
xxx
 
46
0022
 
47
u=rwx,g=rx,o=rx
 
48
0002
 
49
u=rwx,g=rwx,o=rx
 
50
umask 0002
 
51
umask -S u=rwx,g=rwx,o=rx
 
52
u=rwx,g=rwx,o=rwx
 
53
enable .
 
54
enable :
 
55
enable break
 
56
enable continue
 
57
enable eval
 
58
enable exec
 
59
enable exit
 
60
enable export
 
61
enable readonly
 
62
enable return
 
63
enable set
 
64
enable shift
 
65
enable source
 
66
enable times
 
67
enable trap
 
68
enable unset
 
69
enable .
 
70
enable :
 
71
enable break
 
72
enable continue
 
73
enable eval
 
74
enable exec
 
75
enable exit
 
76
enable export
 
77
enable readonly
 
78
enable return
 
79
enable set
 
80
enable shift
 
81
enable source
 
82
enable times
 
83
enable trap
 
84
enable unset
 
85
enable -n test worked
 
86
enable test worked
 
87
specialname
 
88
-specialname
 
89
FOO=BAR
 
90
FOO=BAR
 
91
hash: hash table empty
 
92
0
 
93
AVAR
 
94
foo
 
95
in source.sub2, calling return
 
96
5
 
97
a b c
 
98
a b c
 
99
x y z
 
100
a b c
 
101
a b c
 
102
m n o p
 
103
a b c
 
104
m n o p
 
105
/tmp/bash-dir-a
 
106
/tmp/bash-dir-a
 
107
/tmp/bash-dir-a
 
108
./source5.sub: line 10: /tmp/source-notthere: No such file or directory
 
109
after bad source 1
 
110
./source5.sub: line 17: /tmp/source-notthere: No such file or directory
 
111
one - OK
 
112
0
 
113
0
 
114
two - OK
 
115
0
 
116
three - OK
 
117
0
 
118
four - OK
 
119
0
 
120
abc
 
121
def
 
122
ghi
 
123
after
 
124
one.1 subshell
 
125
two.1 subshell
 
126
three.1 subshell
 
127
four.1 subshell
 
128
one.2 subshell
 
129
two.2 subshell
 
130
three.2 subshell
 
131
four.2 subshell
 
132
x29 - done
 
133
abc
 
134
def
 
135
ghi
 
136
ok
 
137
AVAR
 
138
foo
 
139
foo
 
140
AVAR
 
141
foo
 
142
foo
 
143
AVAR
 
144
foo
 
145
declare -x foo=""
 
146
declare -x FOO="\$\$"
 
147
./builtins.tests: line 213: declare: FOO: not found
 
148
declare -x FOO="\$\$"
 
149
ok
 
150
ok
 
151
./builtins.tests: line 245: kill: 4096: invalid signal specification
 
152
1
 
153
a\n\n\nb
 
154
a
 
155
 
 
156
 
 
157
b
 
158
before: f = 4
 
159
inside
 
160
after: f = 8 bar = 4
 
161
./builtins4.sub: line 2: declare: c: not found
 
162
./builtins4.sub: line 5: declare: d: not found
 
163
declare -a c='([0]="4")'
 
164
declare -A c='([0]="4" )'
 
165
declare -a c='([0]="1" [1]="2" [2]="3")'
 
166
declare -A c='([one]="1" [two]="2" [three]="3" )'
 
167
declare -a c='([0]="1" [1]="2" [2]="3")'
 
168
declare -a c='([0]="1" [1]="2" [2]="3")'
 
169
unset
 
170
unset
 
171
./builtins.tests: line 260: exit: status: numeric argument required