Imported from ../bash-1.14.7.tar.gz.
This commit is contained in:
commit
726f63884d
402 changed files with 150297 additions and 0 deletions
26
tests/misc/redir.t1.sh
Normal file
26
tests/misc/redir.t1.sh
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
read line1
|
||||
|
||||
echo read line1 \"$line1\"
|
||||
|
||||
exec 4</etc/passwd
|
||||
|
||||
exec 5<&0
|
||||
exec 0<&4
|
||||
|
||||
read line2
|
||||
|
||||
echo read line2 \"$line2\"
|
||||
|
||||
exec 0<&5
|
||||
|
||||
read line3
|
||||
|
||||
echo read line3 \"$line3\"
|
||||
|
||||
exec 0<&4
|
||||
|
||||
read line4
|
||||
|
||||
echo read line4 \"$line4\"
|
||||
|
||||
exec 4<&-
|
||||
Loading…
Add table
Add a link
Reference in a new issue