From f91d7a4575498a12f4c9a306aeadd0a204aedcc2 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Tue, 6 Nov 2007 17:42:55 +0100 Subject: Add checks for POSIX sh $(cmd) and functions --- git-amb/git-amb.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'git-amb') diff --git a/git-amb/git-amb.in b/git-amb/git-amb.in index 6aab868..a06b086 100755 --- a/git-amb/git-amb.in +++ b/git-amb/git-amb.in @@ -31,6 +31,12 @@ else exit 1 fi +if test "x$(moo() { echo "meh"; }; moo)" = "xmeh"; then :; +else + echo "$self: FATAL: This shell does not support POSIX sh functions" >&2 + exit 1 +fi + self="$(basename "$0")" bindir="$(cd "$(dirname "$0")" && pwd)" prefixdir="$(dirname "$bindir")" -- cgit