Skip to content

Commit

Permalink
Avoid bashism in configure script
Browse files Browse the repository at this point in the history
&> 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 <[email protected]>
  • Loading branch information
okapia authored and simo5 committed Apr 12, 2024
1 parent 9d52019 commit 69bc78f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69bc78f

Please sign in to comment.