This is the mail archive of the cygwin-patches mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Remove "function" from line to avoid dash objecting to this bash-ism

I've been home-building the last few versions of Cygwin DLL on Windows where I routinely have dash set as my non-interactive shell. The only issue I run into is this one occurrence of the 'function' keyword in winsup/cygwin/ This patch gets rid of the keyword.

FWIW using dash instead of bash has the build running 5%-10% faster.


From fb9db7a75c7e391f451cb1df3c1e8463ef4c7bf3 Mon Sep 17 00:00:00 2001
From: Mark Geisert <>
Date: Wed, 5 Apr 2017 22:20:09 -0700
Subject: [PATCH] Remove "function" from line to avoid dash objecting to this bash-ism.

 winsup/cygwin/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/ b/winsup/cygwin/
index 7e763e0..5aecb14 100755
--- a/winsup/cygwin/
+++ b/winsup/cygwin/
@@ -34,7 +34,7 @@ done
   echo "**** Couldn't open file '$incfile'.  Aborting."

-function parse_preproc_flags() {
+parse_preproc_flags() {
# Since we're manually specifying the preprocessor, pass the default flags
   # normally defined.
   ccflags="--preprocessor=$1 --preprocessor-arg=-E \

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]