From 0ef47729482a58973777a5d58d77a264560dcc95 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 12 Apr 2024 02:22:59 +0200 Subject: [PATCH] Avoid bashism in configure script &> is non-standard for redirecting stdin and stderr. It is a short-hand copied from csh's >& by zsh and later bash. It is equivalent to >word 2>&1 which will also work in dash (/bin/sh on Debian) or other plain Bourne/POSIX shells. Signed-off-by: Oliver Kiddle --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8d881bc..3e0b036 100644 --- a/configure.ac +++ b/configure.ac @@ -29,7 +29,7 @@ AC_SUBST([PRERELEASE_VERSION], AC_DEFINE([PRERELEASE_VERSION], "PRERELEASE_VERSION_NUMBER", [Prerelease version number of package]) -AM_CONDITIONAL([GIT_CHECKOUT], [git log -1 &>/dev/null]) +AM_CONDITIONAL([GIT_CHECKOUT], [git log -1 >/dev/null 2>&1]) m4_pattern_allow([AM_SILENT_RULES]) AM_SILENT_RULES