projects
/
platform
/
upstream
/
bash.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Bash-4.2 distribution sources and documentation
[platform/upstream/bash.git]
/
tests
/
posixpipe.tests
1
# Test timed and negated pipelines in bash-4.2 and later
2
export TIMEFORMAT=$'real %2R\nuser %2U\nsys %2S'
3
4
!
5
echo $?
6
7
! !
8
echo $?
9
10
time ! echo a
11
echo $?
12
13
! time echo a
14
echo $?
15
16
tfunc()
17
{
18
time
19
}
20
21
type tfunc
22
23
! true
24
echo $?
25
! ! true
26
echo $?
27
! ! ! true
28
echo $?
29
30
time time echo a
31
echo $?
32
33
time time -p echo a
34
echo $?
35
time -p time echo a
36
echo $?
37
38
!
39
echo $?
40
! !
41
echo $?
42
43
time -p -- echo a