commit bash-20100615 snapshot

This commit is contained in:
Chet Ramey
2011-12-12 22:01:09 -05:00
parent 67362c6091
commit 3d35553ad4
33 changed files with 8573 additions and 74 deletions
+43
View File
@@ -0,0 +1,43 @@
# Test timed and negated pipelines in bash-4.2 and later
export TIMEFORMAT=$'real %2R\nuser %2U\nsys %2S'
!
echo $?
! !
echo $?
time ! echo a
echo $?
! time echo a
echo $?
tfunc()
{
time
}
type tfunc
! true
echo $?
! ! true
echo $?
! ! ! true
echo $?
time time echo a
echo $?
time time -p echo a
echo $?
time -p time echo a
echo $?
!
echo $?
! !
echo $?
time -p -- echo a