Bash-4.2 distribution sources and documentation
This commit is contained in:
parent
30d188c293
commit
495aee441b
341 changed files with 108751 additions and 36060 deletions
23
tests/vredir5.sub
Normal file
23
tests/vredir5.sub
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
swizzle()
|
||||
{
|
||||
exec {fd0}<&0
|
||||
exec {fd1}>&1
|
||||
|
||||
exec {stdin}<&$fd0-
|
||||
exec {stdout}>&$fd1-
|
||||
}
|
||||
|
||||
swizzle
|
||||
|
||||
echo $stdin $stdout
|
||||
|
||||
read line <&$stdin <<EOF
|
||||
a
|
||||
EOF
|
||||
|
||||
echo $line
|
||||
echo $line >&$stdout
|
||||
|
||||
type swizzle
|
||||
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue