From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) by sourceware.org (Postfix) with ESMTPS id 62238385772E for ; Tue, 27 Jun 2023 17:52:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 62238385772E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vs1-xe32.google.com with SMTP id ada2fe7eead31-440bb9bad3cso1341652137.0 for ; Tue, 27 Jun 2023 10:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687888338; x=1690480338; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+tbIPN/U+Nd9S9LRboCtBQx4bJaFWWlDp9pM0rC7klI=; b=ILyxDYGq6VaTU10l1jio1Q+qNL6EYT7u/tuor6YGLUKWOjkrfu1xTz7OJYTDqWxqrL Kb7vvoKDG+uJXIbeAthfaK3V6qPfu4kHHE949BNdIkKA7ZdHZWpGw4qW8Izi8uttikMN FdPc56kThtNuSIfFsaR62mbwART+4EPsJNMatWaUrA2NJTo90ZFgASnA/ux8hDLdiZB9 asL7QPoHY76sXxSTVvqNn05Apo7p8gqfnUwG1X/dpP58AxJBNSkW9EqCi7O2u4wpALgu fmYUD1/cPGuzJZKesUQVroS2kyHHD+nxvMO3uwrEfx4pv7xIYC8lpv/ZjQd5ino6AR9Q EXew== 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: <1229566577.3107156.1687831718000@mail.yahoo.com> In-Reply-To: <1229566577.3107156.1687831718000@mail.yahoo.com> From: David Karr Date: Tue, 27 Jun 2023 10:52:07 -0700 Message-ID: Subject: Re: Another confusing error from someone else's Cygwin setup To: Mike Gran Cc: The Cygwin Mailing List Content-Type: multipart/alternative; boundary="000000000000d8048e05ff20206c" 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 List-Id: --000000000000d8048e05ff20206c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3Dlf in a .gitattributes file. This is now all fixed. On Mon, Jun 26, 2023 at 7:08=E2=80=AFPM Mike Gran 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 > --000000000000d8048e05ff20206c--