From bad78f8364214129d96f1ae0e028e2810a828791 Mon Sep 17 00:00:00 2001 From: David Lichteblau Date: Fri, 14 Sep 2012 19:36:21 +0200 Subject: [PATCH] Port tests/expect.sh, foreign.test.sh to FreeBSD's shell Fixes clos.test.sh, foreign.test.sh on FreeBSD 9.1. --- tests/expect.sh | 45 +++++++++++++++++++++++++++++++++------------ tests/foreign.test.sh | 6 ++++-- 2 files changed, 37 insertions(+), 14 deletions(-) diff --git a/tests/expect.sh b/tests/expect.sh index 84617f0..bbcd3c5 100644 --- a/tests/expect.sh +++ b/tests/expect.sh @@ -5,11 +5,22 @@ # Check that compiling and loading the file $1 generates an error # at load time; also that just loading it directly (into the # interpreter) generates an error. + +# In bash, +# +# function callee() { cat } +# function caller() { callee bar <