summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:33:49 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:33:49 +0000
commita8ed1e249cb6917720c3f0c60048d7b0dfbbccb0 (patch)
tree32010999aed7b37ad1d58772c6e93ae31d6b06d9
parentfaea1b0df857331fd560ef05373f726a919a8e15 (diff)
downloadzsh-a8ed1e249cb6917720c3f0c60048d7b0dfbbccb0.tar.gz
zsh-a8ed1e249cb6917720c3f0c60048d7b0dfbbccb0.tar.xz
zsh-a8ed1e249cb6917720c3f0c60048d7b0dfbbccb0.zip
moved from ./Test/12procsubst.ztst
-rw-r--r--Test/D03procsubst.ztst25
1 files changed, 25 insertions, 0 deletions
diff --git a/Test/D03procsubst.ztst b/Test/D03procsubst.ztst
new file mode 100644
index 000000000..1810f9178
--- /dev/null
+++ b/Test/D03procsubst.ztst
@@ -0,0 +1,25 @@
+# Tests for process substitution: <(...), >(...) and =(...).
+
+%prep
+  mkdir procsubst.tmp
+  cd procsubst.tmp
+  print 'First\tSecond\tThird\tFourth' >FILE1
+  print 'Erste\tZweite\tDritte\tVierte' >FILE2
+
+%test
+  paste <(cut -f1 FILE1) <(cut -f3 FILE2)
+0:<(...) substitution
+>First	Dritte
+
+  paste <(cut -f2 FILE1) <(cut -f4 FILE2) > >(sed 's/e/E/g' >OUTFILE)
+  sleep 1	# since the sed is asynchronous
+  cat OUTFILE
+0:>(...) substitution
+>SEcond	ViErtE
+
+  diff =(cat FILE1) =(cat FILE2)
+1:=(...) substituion
+>1c1
+>< First	Second	Third	Fourth
+>---
+>> Erste	Zweite	Dritte	Vierte