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

« back to all changes in this revision

Viewing changes to tests/posixpipe.tests

  • 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
# 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