diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2003-05-02 10:25:27 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-05-02 10:25:27 +0000 |
commit | 94da86f7956af9d6855c12d79d757b961bf0c2a4 (patch) | |
tree | b1f29cf6076db0a33f9e923101816756d9be8508 /Test | |
parent | d9274f5126ebd0ddb2902c0788d51ef57836b02b (diff) | |
download | zsh-94da86f7956af9d6855c12d79d757b961bf0c2a4.tar.gz zsh-94da86f7956af9d6855c12d79d757b961bf0c2a4.tar.xz zsh-94da86f7956af9d6855c12d79d757b961bf0c2a4.zip |
18492: Provide partial fix for multios and output process substitution
asynchronicity problem. Document workarounds for remaining problems.
Diffstat (limited to 'Test')
-rw-r--r-- | Test/A04redirect.ztst | 12 | ||||
-rw-r--r-- | Test/D03procsubst.ztst | 4 |
2 files changed, 4 insertions, 12 deletions
diff --git a/Test/A04redirect.ztst b/Test/A04redirect.ztst index 2c3bd12ca..bf0d23a13 100644 --- a/Test/A04redirect.ztst +++ b/Test/A04redirect.ztst @@ -137,16 +137,10 @@ >errout: >Output -# Following two tests have to be separated since in -# print bar >foo >bar && print "$(<foo) $(<bar)" -# the multios aren't flushed until after the substitutions take -# place. This can't be right. rm -f errout print doo be doo be doo >foo >bar -0:setup 2-file multio - print "foo: $(<foo)\nbar: $(<bar)" -0:read 2-file multio +0:2-file multio >foo: doo be doo be doo >bar: doo be doo be doo @@ -162,11 +156,9 @@ rm -f * touch out1 out2 print All files >* -0:setup multio with globbing - print * print "out1: $(<out1)\nout2: $(<out2)" -0:read multio with globbing +0:multio with globbing >out1 out2 >out1: All files >out2: All files diff --git a/Test/D03procsubst.ztst b/Test/D03procsubst.ztst index c1d7d289d..633235eb5 100644 --- a/Test/D03procsubst.ztst +++ b/Test/D03procsubst.ztst @@ -17,8 +17,8 @@ 0:<(...) substitution >First Dritte - paste <(cut -f2 FILE1) <(cut -f4 FILE2) > >(sed 's/e/E/g' >OUTFILE) - sleep 1 # since the sed is asynchronous +# slightly desperate hack to force >(...) to be synchronous + { paste <(cut -f2 FILE1) <(cut -f4 FILE2) } > >(sed 's/e/E/g' >OUTFILE) cat OUTFILE 0:>(...) substitution >SEcond ViErtE |