about summary refs log tree commit diff
path: root/Test/12procsubst.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2000-04-19 19:03:09 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2000-04-19 19:03:09 +0000
commit155df70ca803d4d69a37f9e25d47cc9d7ab771fc (patch)
tree3fec9f2c2b019370f220fe5c7215cf93eaf608f2 /Test/12procsubst.ztst
parente1a22eb2f9269d0a3aa0de9eddbf79a2dfe4c759 (diff)
downloadzsh-155df70ca803d4d69a37f9e25d47cc9d7ab771fc.tar.gz
zsh-155df70ca803d4d69a37f9e25d47cc9d7ab771fc.tar.xz
zsh-155df70ca803d4d69a37f9e25d47cc9d7ab771fc.zip
Test additions; 3.1.7-pre-1
Diffstat (limited to 'Test/12procsubst.ztst')
-rw-r--r--Test/12procsubst.ztst25
1 files changed, 25 insertions, 0 deletions
diff --git a/Test/12procsubst.ztst b/Test/12procsubst.ztst
new file mode 100644
index 000000000..1810f9178
--- /dev/null
+++ b/Test/12procsubst.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