From ba56beab291152581e2e525f42247f01200dfe9a Mon Sep 17 00:00:00 2001 From: Nils Dagsson Moskopp Date: Thu, 18 Oct 2018 16:33:38 +0200 Subject: + test handling of dofile that writes to $3 and stdout --- stdout-and-$3/all.do | 4 ++++ stdout-and-$3/bogus.do | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 stdout-and-$3/all.do create mode 100644 stdout-and-$3/bogus.do (limited to 'stdout-and-$3') diff --git a/stdout-and-$3/all.do b/stdout-and-$3/all.do new file mode 100644 index 0000000..a6d65eb --- /dev/null +++ b/stdout-and-$3/all.do @@ -0,0 +1,4 @@ +#!/bin/sh +redo-ifchange bogus \ + && printf >&2 'FAIL: Write to $3 and stdout possible.\n' \ + || printf >&2 'PASS: Write to $3 and stdout impossible.\n' diff --git a/stdout-and-$3/bogus.do b/stdout-and-$3/bogus.do new file mode 100644 index 0000000..22fa07f --- /dev/null +++ b/stdout-and-$3/bogus.do @@ -0,0 +1,3 @@ +#!/bin/sh +printf 'stdout' +printf '$3' >$3 -- cgit v1.2.3