From 7a6f1bbb003b63ae6290d4ccd2b51d94adeade82 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Fri, 15 Nov 2013 18:00:03 +0000 Subject: [PATCH] roundup-test-5.sh: Remove `function` keyword for greater POSIX compatibility Without this, bash 4.2.25, in particular, on my Ubuntu system chokes with: ``` ./roundup: 90: ./roundup-5-test.sh: Syntax error: "(" unexpected (expecting "}") ``` --- roundup-5-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roundup-5-test.sh b/roundup-5-test.sh index 250a586..8e8739a 100644 --- a/roundup-5-test.sh +++ b/roundup-5-test.sh @@ -87,10 +87,10 @@ it_runs_after_if_a_test_fails_part_2() { # Output the correct return code of a failing command of a testcase. it_outputs_the_return_code_7() { - function f() { return 42; } + f() { return 42; } x=$(echo asdf) - function g() { return 7; } + g() { return 7; } g }