# [PATCH 2/2] check-builtins: Strip any executable suffix to make it work on Windows

2 messages from 2015-02-05 to 2015-02-05. Participants: Sebastian Schuberth, Junio C Hamano.
Thread: https://gitlist.dev/t/38506

## Sebastian Schuberth, 2015-02-05 13:28

Subject: [PATCH 2/2] check-builtins: Strip any executable suffix to make it work on Windows
Message-ID: <CAHGBnuNvesez_Ctvpi16vzsOZnaHiY5Fcf5+b+u0HNZ9zAyNZw@mail.gmail.com>
URL: https://gitlist.dev/e/CAHGBnuNvesez_Ctvpi16vzsOZnaHiY5Fcf5%2Bb%2Bu0HNZ9zAyNZw%40mail.gmail.com

```
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
---
 check-builtins.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check-builtins.sh b/check-builtins.sh
index 07cff69..a0aaf3a 100755
--- a/check-builtins.sh
+++ b/check-builtins.sh
@@ -3,7 +3,7 @@
 {
     cat <<\EOF
 sayIt:
-    $(foreach b,$(BUILT_INS),echo XXX $b YYY;)
+    $(foreach b,$(BUILT_INS),echo XXX $(b:$X=) YYY;)
 EOF
     cat Makefile
 } |
-- 
2.1.2-mingw-1

```

## Junio C Hamano, 2015-02-05 20:01

Subject: Re: [PATCH 2/2] check-builtins: Strip any executable suffix to make it work on Windows
Message-ID: <xmqqa90sku0w.fsf@gitster.dls.corp.google.com>
URL: https://gitlist.dev/e/xmqqa90sku0w.fsf%40gitster.dls.corp.google.com
In-Reply-To: <CAHGBnuNvesez_Ctvpi16vzsOZnaHiY5Fcf5+b+u0HNZ9zAyNZw@mail.gmail.com>

```
Sebastian Schuberth <sschuberth@gmail.com> writes:

> Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
> ---
>  check-builtins.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/check-builtins.sh b/check-builtins.sh
> index 07cff69..a0aaf3a 100755
> --- a/check-builtins.sh
> +++ b/check-builtins.sh
> @@ -3,7 +3,7 @@
>  {
>      cat <<\EOF
>  sayIt:
> -    $(foreach b,$(BUILT_INS),echo XXX $b YYY;)
> +    $(foreach b,$(BUILT_INS),echo XXX $(b:$X=) YYY;)
>  EOF

Makes sense; thanks.

```
