aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ifcreate/a.do
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ifcreate/a.do')
-rw-r--r--tests/ifcreate/a.do11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ifcreate/a.do b/tests/ifcreate/a.do
new file mode 100644
index 0000000..7f58ce4
--- /dev/null
+++ b/tests/ifcreate/a.do
@@ -0,0 +1,11 @@
+
+if [ -e b ]; then
+ echo -n "b" | cat - a > $3
+else
+ redo-ifcreate b
+ if [ -e a ]; then
+ echo -n "a" | cat - a > $3
+ else
+ echo "a" > $3
+ fi
+fi