Bash-4.3 distribution sources and documentation
This commit is contained in:
parent
4539d736f1
commit
ac50fbac37
497 changed files with 129395 additions and 87598 deletions
25
tests/redir10.sub
Normal file
25
tests/redir10.sub
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Out of file descriptors, because it forgets to close redirection. Only
|
||||
# happens in a shell function. Problem through bash-4.2.
|
||||
|
||||
ulimit -n 128
|
||||
|
||||
bug()
|
||||
{
|
||||
c=`ulimit -n`
|
||||
let c+=100
|
||||
while let c--
|
||||
do
|
||||
while read -ru3 x
|
||||
do
|
||||
echo -n :
|
||||
done 3< <(echo x)
|
||||
|
||||
done
|
||||
}
|
||||
|
||||
bug
|
||||
echo
|
||||
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue