From mboxrd@z Thu Jan 1 00:00:00 1970 From: mailings at hupie.com (Ferry Huberts) Date: Tue, 9 Oct 2012 13:10:49 +0200 Subject: [RESEND] [PATCH v1 2/2] syntax-highlight: fix POSIX '==' issues In-Reply-To: <1349781049-6971-1-git-send-email-mailings@hupie.com> References: <1349781049-6971-1-git-send-email-mailings@hupie.com> Message-ID: <1349781049-6971-2-git-send-email-mailings@hupie.com> From: Ferry Huberts Signed-off-by: Ferry Huberts --- filters/syntax-highlighting.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filters/syntax-highlighting.sh b/filters/syntax-highlighting.sh index 8b09180..1178502 100755 --- a/filters/syntax-highlighting.sh +++ b/filters/syntax-highlighting.sh @@ -39,11 +39,11 @@ BASENAME="$1" EXTENSION="${BASENAME##*.}" -[ "${BASENAME}" == "${EXTENSION}" ] && EXTENSION=txt +[ "${BASENAME}" = "${EXTENSION}" ] && EXTENSION=txt [ -z "${EXTENSION}" ] && EXTENSION=txt # map Makefile and Makefile.* to .mk -[ "${BASENAME%%.*}" == "Makefile" ] && EXTENSION=mk +[ "${BASENAME%%.*}" = "Makefile" ] && EXTENSION=mk # highlight versions 2 and 3 have different commandline options. Specifically, # the -X option that is used for version 2 is replaced by the -O xhtml option -- 1.7.11.4