delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/01/01/02:54:10

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 6017s91N1376182
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 6017s91N1376182
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=ege02Q9T
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7FBF74BA2E2B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1767254048;
bh=FgfpRiz7ticM9tPpW4SviqAlD3l31Fm7+tMEiuJ+Oz4=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=ege02Q9T/mFMEDaTq09IpSNQ2IP0nO5XRzIkD/lDHKMhYoB9OGwtHYVWq31heemak
3dVGIDS4dECQ+K1BK+DTVpSfN63emOgRlfmMgkAdlwQRiYlakrPJQ6fN7XtEjfrsUo
oM3iU+iz/C0ys5JwYlsukeJ2/KPVgMoi/jbENlcg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 722BA4BA2E04
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 722BA4BA2E04
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1767254029; cv=none;
b=WKclnfciszVTs8veS2/EWfN5RdTdPBWQgnOh9ViLKX0BW00lHE33ZTauMzE2eFqgjuQGBhi2Z7mOYkgxDm5kX1ExGAt52W6k+aMWlq/im0ggkWzGH/PoJR+2RQlT3pOVOhMLlUFdMOgVioVXhbV4Cw4b7VLpvxJAPlPKbwqW3yY=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1767254029; c=relaxed/simple;
bh=rjWqBcj3GVs5e8K2ST7MwAYIUAEbBZeXHoCQhMVHAdM=;
h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature;
b=D21vHA+OKzvCP1FEUbKtWlKMB6U8tG9fnJXrKqr+ltzu9kdFMplHbZi1MHsFzpV8R5+WAR74paMu8Y0rEOqvph71Xv0M/O/IMuocQoJ9rtRuZV4wFx1Vc0mbr2Hxd2Ofb7u4v6RsA9Wfua8zzxvbTFiPIqH/K6OuMVt267+07nA=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 722BA4BA2E04
Message-ID: <0fb6c806-90d9-4455-b717-2130a274aa60@SystematicSW.ab.ca>
Date: Thu, 1 Jan 2026 00:53:46 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Spurious warning generated by bash
To: cygwin AT cygwin DOT com
References: <CAGB_HuTgfY9Jw9obziey8HoLevg8+dP64OpM4oMNJkNoddvxzw AT mail DOT gmail DOT com>
<CAJtSMgvvcPhMt8z9p=SfBNs2vyTMqCMs6vv=8yWhjpJ_THnEfw AT mail DOT gmail DOT com>
<CAKwdsS-g_oa3AnraUABvLxN3StdNGF_DYRcHt1hbWfh-oQWkhQ AT mail DOT gmail DOT com>
<CAGB_HuROB3G2htJ6TvkJx5M0HXgEL2rbOCReGtU_vKvaeMrk9g AT mail DOT gmail DOT com>
Organization: Systematic Software
In-Reply-To: <CAGB_HuROB3G2htJ6TvkJx5M0HXgEL2rbOCReGtU_vKvaeMrk9g@mail.gmail.com>
X-Rspamd-Queue-Id: 894D160011
X-Stat-Signature: 6hu6znpykn33wfoasz8s5gyrjre1tfpw
X-Rspamd-Server: rspamout08
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX1/2W3VpSRLIJg1LTFNTPyK+agpFshqBVTs=
X-HE-Tag: 1767254027-390972
X-HE-Meta: U2FsdGVkX18pQ6erb1vIq7BkO4WFU7W7ORySnsWxK2pADpihxmJMyM6T5PqXVCSQSZOv3GkLBC8iRX4Xtzmw/YvNNnWPQoCauPb0Mrs1R2Rm2gGLR9DYNb5VDUfPkBSvX2fcxH/tBPDeLM/RxT8iScPmK28odNszj99A0TOAlaD1CYutPRZA+qr8tu3a02NFGnOuiLeh3Or39v1iY9mka3uUtNHFc8CZbZAB44Dgmzw8Wn3wC07UHS43INUCKH6E5Ch9SF+Slc56gC/mOePGnw16a4mY3WFwOvxqVvTNrZo53MJYkDa2cHI/h5goCYspUYR9YtyGExRFhO6UzE7ei/Iw2OjJlOCm
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT ab DOT ca>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 6017s91N1376182

On 2025-12-31 19:20, Soren via Cygwin wrote:
> On Wed, Dec 31, 2025 at 7:59 PM Backwoods BC via Cygwin wrote:
>> On Wed, Dec 31, 2025 at 1:25 PM David Dyck via Cygwin wrote:
>>> On Wed, Dec 31, 2025 at 12:21 PM Soren via Cygwin wrote:

>>>>    ./list2str.sh: line 1: #!/bin/bash: No such file or directory

>>> nice perl script :-)

>>> I don't get the warning when the script is run from bash
>>> what context did you run the script from?

>> I suspect your source is UTF with a BOM tag. I created a file with
>> this and got your exact results. UTF is OK as long as it doesn't have
>> the BOM tag.

> Wow, yes.

> You are absolutely correct. I opened the script in vim and :set nobomb and
> the script now executes properly without the annoying noise. I needed the
> bomb for something to do with perl developing (it was a while ago), but
> I'll have to remember to set vim up so that it doesn't do that on scripts.
> Thank you VERY much and have a Happy New Year.

Running `file` is your friend - it tells you what junk may be in a file.

Running `d2u -i ...` gives more info, then 'd2u -e -f -r ...` fixes most issues.

Happy New Year and have a great 2026!

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019