X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E210A3858C2D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1687888379;
	bh=3tbmZKe186867CZ63kSECMa7CigYb8Sh33pPNyy8f1U=;
	h=References:In-Reply-To:Date:Subject:To:Cc:List-Id:
	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
	 From:Reply-To:From;
	b=BwMRoQee8Kj8DmsQSerOJxJBcy8MtpgB+P0B9Y+jU5wh9gL09UkJRXd48cBlQnLhV
	 y7dxhfW/jNiInOoGVBI7QpDRQJbO1Ob6CPGFifzit7l8065xR+vMhqasYn3KVoUjEw
	 /PPnjwiY93KiJHaJMRKnJVY/BYBLP0wuKrHzFSoQ=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 62238385772E
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1687888338; x=1690480338;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=+tbIPN/U+Nd9S9LRboCtBQx4bJaFWWlDp9pM0rC7klI=;
 b=CHPTFry1/tYXN3qqEHb5LUlYGeXclFQsbulu8UY+W3p1Z1hPiom6Nb3ZK90ssz4H0W
 WBOwVeu3UdntOVDNhlINNzHLKTpf8Juan848cAZ76D3CFlFwyVBPQNdQVmji/TNoRM2F
 E3E39jSOkhd2hPV9AJ+9BdN67+ShdX/CLZhvuWsweqVOKnIutVhKlMhXQpN6PtNMZtFb
 /yaQWLqgfc82cKlHn1pOchN9zg8SisdmvVtu6zZ/M47+CLvacuFtErQSOzvlC7h0gPra
 lNEhoy6FQdVjy1ktngjCKHB2PUxnBblP5sSWJEcAp155vDhkykoPqsL0Uwf6yqo8xuEr
 sOvQ==
X-Gm-Message-State: AC+VfDwiSNZrplv8Q4RoBCDM+uu5WfaiyuP3R5ikROpB1wXCDgiqL7ti
 I8/Vj+I34O6in4YU+6R5nYWAAB+JrW4tZhTBgCLPzaWb
X-Google-Smtp-Source: ACHHUZ7Q9iKfld1SQkocBoW+3wzYue9QPB9eVdWHbGZnEa6Z0ftd4jdwnRXxPqeSmOS9Ggjkh4giC9GoiY38djTsNs8=
X-Received: by 2002:a67:f846:0:b0:443:6212:60a9 with SMTP id
 b6-20020a67f846000000b00443621260a9mr3072514vsp.6.1687888338616; Tue, 27 Jun
 2023 10:52:18 -0700 (PDT)
MIME-Version: 1.0
References: <CAA5t8VrR9yD3LS8AyRWD9O5J6gDbrfdbaWSUrjzwjYu30Umkiw@mail.gmail.com>
 <1229566577.3107156.1687831718000@mail.yahoo.com>
In-Reply-To: <1229566577.3107156.1687831718000@mail.yahoo.com>
Date: Tue, 27 Jun 2023 10:52:07 -0700
Message-ID: <CAA5t8VrN5BtmN6HWDEae7taMSszJc35+q2J3yv_6JFB9oKpm2g@mail.gmail.com>
Subject: Re: Another confusing error from someone else's Cygwin setup
To: Mike Gran <spk121@yahoo.com>
Cc: The Cygwin Mailing List <cygwin@cygwin.com>
X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: David Karr via Cygwin <cygwin@cygwin.com>
Reply-To: David Karr <davidmichaelkarr@gmail.com>
Content-Type: text/plain; charset="utf-8"
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 35RHrNCn023562

The line endings were the issue, thanks. They were that way because I
didn't realize I should force those files in git to have eol=lf in a
.gitattributes file.  This is now all fixed.

On Mon, Jun 26, 2023 at 7:08 PM Mike Gran <spk121@yahoo.com> wrote:

> > On Monday, June 26, 2023 at 04:36:30 PM PDT, David Karr via Cygwin <
> cygwin@cygwin.com> wrote:
>
> > m seeing a problem with someone else's Cygwin setup, sort of similar to a
> > problem I asked about a couple of weeks ago, in that it's a problem with
> > the same user, but seemingly a completely different problem.
>
> ...
>
> > He was getting a weird error on line 3, just saying this:
> > ---------------------
> > ...: line 3: syntax error near unexpected token `$'{\r''
> > ...: line 3: `main() {
> > ---------------
>
> If you run bash with the "-o igncr" option, it will ignore extraneous
> carriage return characters.
>
> But the characters are there in the first place because your
> script has been converted into using Windows line endings:
> carriage return + linefeed.
>
> You didn't say how the script was transferred, but lots
> of programs could add returns when you transfer something
> to windows: git or ftp just to name a few.
>
> You both could try running "bash --version".  The first line should
> say something like
> "GNU bash, version 5.2.15(3)-release (x86_64-pc-cygwin)"
>
> Note the "pc-cygwin" at the end.
>
> HTH,
> Mike Gran
>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

