DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5BVKLPEr1085073 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 5BVKLPEr1085073 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=NN9AtM5a X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B58304BA2E1D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1767212484; bh=4fb82OIoezx88qox/HQAA48hmKpbimPBpqb+32SGH8A=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=NN9AtM5a9TP0SgTS7oKBRiKdfoHXLBVIiuInxfeOOG9SwEl6Xt1hirHR43EAlC2r3 6vhVCJCLgEV78flLLZHzRn+f1wWUuRZI0Y1j3By7c88Tz+QpnF5etFQ8Vt9+ObCSop nsGknI9oke4j4gNSI5Uy+APLBLnn6c5GWEDwxe8M= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 435824BA2E06 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 435824BA2E06 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1767212466; cv=none; b=NW8UuLo4ZOGIZ+IJhzsesw6DM4vAsO2EYpe8cfJURFe3Gc5eUjJZNChYMr8kzCf8iaqGBZa/ME2thK1HMiYgcrU3zurKdJGGTryhAF8FGOCggDdz41haytmD8oJLf4wrEm7BptU7dLcV/pYN0/htStbgvm5y+TUY3DutAq81ntk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1767212466; c=relaxed/simple; bh=b4TXEiVBJSPM25dpYa1HLBYfT8PQMP3nuvvPBjSUKnQ=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=iTCvyMy+1edzEvNF6IS/9GXRlXsA10YysqAl7WFPJZQcL6+AD9Ac1PQrTJamBLKm0pwFhyLMGjStJ72S79dypUdRGyoHTId8+8Q4naCcB/dFmvXEZIHJyUkjbZGVPGxCeA/kOG22+sTFpEku/e8fGu0k7aJtdkrfzJyD9+rTdZ4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 435824BA2E06 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767212464; x=1767817264; h=to:subject:message-id:date:from:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=35pogfPRq+GaQ8ubEIS2DpQEMx47BO09sqqd9cbDLJk=; b=TKHxWFxAo3y9owZApszqMNTjISgU/GepOhHD3egffpW8oXqI1kzgR9OxzCCPIfnLVP ygIWw+BW6eQt5ZKaVbVFGObNTT3kn8Lk4AVLPwW/w0ep62ZGlqUV2BUGB3zy01szjS3m nHQe36DLz21UBeEhJtN1UIlCbhakzVM+r6p6DaErzfk2HKt8U1Q797TCMrSdfYFu5CrR w2RW/s2if/zyl8dOfjV6M8e++zgnVuhCgJFP/+Vbw1uxbisZlW9DdCKSPGKh24jlWq8B rQrc8yyjKkgGJ4zpcF46C3RKM4ni0an27ofuJ8f1qZWGCkjNsGoYLFmQg6zhDMKnbdMa MKeA== X-Gm-Message-State: AOJu0YzJodKnhUUrxn2iZAGDKfZTz6iWc69viFGR2ysZ4pQ3/kJuv7pE Oy4kguIjFZRLglCxnrYENjJRd70hGn334MORzrg3+HZMavz2SeSdNFdvPChoxl9RmcCYPngMI0D m0Gh//dIKem3L/4Ogub9zyIhOXlLPZqIyUhrr X-Gm-Gg: AY/fxX5je04c9AKPHWx7Qqj5AUvGMRE1fopWqyI3BWej+LugUF+LeCc1F91RzGNQXtV 9uAhf8nqw4g5bIk69uOMl8tfOIO57zcrTzOcRCvM7e3/MKmx2TJXAaI3A9DtT9ugSwdHReVwNzK Rx9RmwaDSTV4nosmviTk3UZl6p1LiAQtE+YewXrohqCP2oS8IaXSUrXxknzURl9ycvUXZMFv++6 qiHQQsFsvWjmsCpLQ/wEKKWdAHx0DhsfklGEv3Nl+UvHo9b2nE3D4ojL1zywIcSW57P X-Google-Smtp-Source: AGHT+IFIMksPdg2ltum07tjvGeoL5bwbDfbAd5tb5RgT94ztzfNWV/THVjDxzbvO8P9736lWPJ8VDH5UbSzcM59ds4c= X-Received: by 2002:a2e:bc20:0:b0:378:d020:b6b3 with SMTP id 38308e7fff4ca-381131adf46mr142102911fa.7.1767212464265; Wed, 31 Dec 2025 12:21:04 -0800 (PST) MIME-Version: 1.0 Date: Wed, 31 Dec 2025 15:20:52 -0500 X-Gm-Features: AQt7F2qSpkhOxje8tbHoe_UNaNHBtLF5qAcJEn1L9uOWC7twlxb-Ddertio0XsI Message-ID: Subject: Spurious warning generated by bash To: cygwin AT cygwin DOT com X-Content-Filtered-By: Mailman/MimeDel 2.1.30 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Soren via Cygwin Reply-To: Soren Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 5BVKLPEr1085073 Hello Cygwinstas, Today (the last day of the year, Happy New Years, all)... today I have an inquiry about how cygwin handles the script shebang line in a sh script. When invoking a simple script (not that the complexity would matter at all), I get a warning like: ./list2str.sh: line 1: #!/bin/bash: No such file or directory I don't recall ever seeing this happen with perl scripts, for example. I have tried every permutation I could think of: And the script executes successfully. The permissions on the script are correct (owner has execute) and the script has *nix line endings. I have tried: #!/usr/bin/bash #!/usr/bin/bash.exe #!/bin/bash #!/bin/sh #!/usr/bin/sh Can I have some illumination bestowed upon me? Thanks. The script: #!/usr/bin/bash.exe # Last modified: Wed Dec 31 2025 03:06:47 PM -05:00 [EST] ; $l=~s{\cM?\cJ}[ ]g; print $l;' # Used for converting a vertical list (embedded newlines) to a single string. -- Soren 'tino He's earthy, he's pithy, he's ...a bit astringent. Think of him more as a "topical antiseptic" than as a snack. -- 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