X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85DD7385840A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1678456799; bh=OgJ9RYb74Sa7Ossa+riPhfXNPn9C2tu5Q++Xqdbp5zk=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=FfuHmwa08Rh5rswV77sFxjJvt5z1ZNCkf15VsULRPoe08iQgPXKzpP7GphYLTiNIe CfTWM5HrKIBWQRHFAau16YyDiUxX572P38ImbqPqJmWIYoXzCYOD8XXa33UvO9TSur sD1VAX139NmXXe8AqYbkKz5GY1m0wSR09COinatY= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EA9BF3858D3C ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NtVgjCcMB0d0+SqTVZaezTyrEFgGdn30MXmRI1Ir4HTCuGNOrSLIjIuViiApNF8r1ufXd3FFEXCB7QzG/Uy135SDxw1vAoFwDc8uNc5sEZBSXGIain/uGH5xPIY+BQ/YZ+YusNe4lbcCsCSh0AlW5Lt4vlMeU6coC/pXBrBPQd7DmSK/lwWF9xX8yzj0D7J8665462E+ftbUaLx2XYyZ9RMtgpolM4M0MM0IcnByYrvhIdcrOSfZRabyXLdeTZMoX7mVkmeJDw5IUfVqDPfoEAafqfvSoe/BfrnTs+y+dmhTQMfkJsOzi47/rp6Ttr3d6P4yfnWKl8+C44FpWm09Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZlK109l0owtGOJGTBiuhniMb587FcSNyO+QqRdOBFr4=; b=JbQ67r/K+Bxb7UAJ50TZ9qFexiUdybd3nNn0O+4hnF87rgzI67/waQlqXJyRWTINiY1qZ988E1Wcr/uPlOLP5ASAUS0wy9KuWaZSrO60ZBryGiNmBoh+VBU2DUaJmcyMPZOfvhN3pWs2DOr9H9s8imhjrjykOBIzTzfQ+PlJ6R13fiALS4B0+vFqgdOVDh78lYD5YvgouEZz7IcFtDL+SMFUCSCoGduQkKBR8xQ/CL8Mtrh2t0wTaGLxBsm+TF3PwGto5izzsZI0VHnf5kpNIrt9okZQ/1xxETTeczApt6CHKm5RaLADGoQC5zAF0//TIpb710xxTDF2FdeJP8TQUA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none Message-ID: <63cccff3-9487-3588-5dd8-e49499882280@cornell.edu> Date: Fri, 10 Mar 2023 08:59:36 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: General scripting issues vs. Linux Content-Language: en-US To: Markus Becker , cygwin AT cygwin DOT com References: In-Reply-To: X-ClientProxiedBy: MN2PR08CA0014.namprd08.prod.outlook.com (2603:10b6:208:239::19) To SA0PR04MB7322.namprd04.prod.outlook.com (2603:10b6:806:e2::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA0PR04MB7322:EE_|SN6PR04MB4287:EE_ X-MS-Office365-Filtering-Correlation-Id: f9c4e8fa-8a19-47ad-e013-08db216fb12d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VaosgsIZiov5j+0V3RezDmIdnXYDf3U/TYK8WMgAGPT/qkR4J53J2Tg+n+qNuEWjqCSrpoaOybYgNAnKQz3uMrba4Gv0dNDkr/DFlFZAYAvIOBMmZAufO2YnETOu1ecumMeZnmZGoemw1Mk3zf6IKC35NQIJxN3VdTJsB3fwcsnBWjWNOIcs/t4Urk95o8MrvqzTglYWjbi/Vo14R6QEkK7151O/fV+poHP8lfqd5KpbDVSwoiaMAI11OmFzcBIN6T1sB75k95PlsHOBS3cR90JDsb64yQWMvSiAcTSqIF2/CrPuTQnLBzLWQZijVR1wrOuuPhSr+2UEx+Ktu8iekivc6bYbkl8TTDJuserZcsUzGagqNwK+p7k5NkqSKGdMu3p7nOLPHR8FbnOjIab03Fyjns/MD5cy+6bXi3f/Jpkyagv1fp/J8TG00lrnmN/QbRMKzFAMAIBYwgfk/0kSKLW6PDYiXdVQnY53rbRQbPXNKOoRK91dzAVEGp3ph29FaGddgXihVqtxe6VxC6+IUnuB5HRwT0kh64/As9KZ9x6RV360LVOExFreDDm7boXcHUPToldbSb74UsU+ZVgAeXmcaaldZvvU9Tah2OPHpjCSia6ErBXItSKzubdat/eObR238Imr9b4lGdxdOsf4P09rjCHj2h4Gi7Sof8Gwt38abc60vaAejpd3MZHrIQKpBOT+ufnm5iCQ5LeVjqiCCzW1YQZxq9oujXonQ0M4kig= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA0PR04MB7322.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(376002)(396003)(39860400002)(366004)(136003)(346002)(451199018)(2906002)(31686004)(83380400001)(36756003)(5660300002)(75432002)(66556008)(66946007)(66476007)(41300700001)(8936002)(8676002)(41320700001)(786003)(316002)(38100700002)(86362001)(31696002)(478600001)(2616005)(6506007)(186003)(6512007)(53546011)(6666004)(6486002)(26005)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eWJRVGxjWTVMaVlVVHc0Qm5GWmo2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5dXdm?= =?utf-8?B?elJCd3B0SCtXWkQvNmhWSmJLdXhVREN0Tng1M1pYTGhqai9kK3BSSmdwRHRS?= =?utf-8?B?aG5UU1AzeklJcXZmNFVRWWFzQmdlYXFrLzNkalovWE9vRStqSUtINVREM1RY?= =?utf-8?B?b1prTlZNbDBoVjNBdXlhcktBWTk1dk5nM2l2Q1RaRHluVEE1Mko3VWVVWHMr?= =?utf-8?B?dTI2b2RLdFFXbm1SVGxsS0NtREFjYTh0NmxXQmZrTDJmUGpNZWx3M3lQa0tL?= =?utf-8?B?MEhHS2ozNHFQbU5FQW9WR1JCYllPT2dacUF2Vnl1ekl5dFdiR1ZtSEs1NG9Q?= =?utf-8?Q?3i3tT+HwJpdGtWZlTgCUoXzPR?= X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: f9c4e8fa-8a19-47ad-e013-08db216fb12d X-MS-Exchange-CrossTenant-AuthSource: SA0PR04MB7322.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2023 13:59:40.2591 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: be4sLFd6G3Ye7zGe5ngZo+slsEZEvL6z2l4XVpJiY7SHdWNPsN2b5Dfc8QynnoD2tlvT/iMKX6c42qIe+7McXg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR04MB4287 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, JMQ_SPF_NEUTRAL, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Ken Brown via Cygwin Reply-To: Ken Brown Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 32AE0NdU029546 On 3/10/2023 8:47 AM, Markus Becker via Cygwin wrote: > Dear Guys, > > I am quite an newby in Cygwin scripting and encountered several execution > issues with bash scripts. For example, when i try to execute the following > simple scriptfile "skript1.sh": > > # This is a testscript > Statement="This is the testscript number 3" > FILE="home/mbecker/Secure_Copy_Beispiel.txt" > ls -l $FILE > echo $Statement > echo The file is $FILE > > i got these results: > > $ ./skript1.sh > ls: cannot access 'home/mbecker/Secure_Copy_Beispiel.txt'$'\r\r': No such > file or directory > This is the testscript number 3 > The file is home/mbecker/Secure_Copy_Beispiel.txt > > or another results from a different script: > > $ ./skript7.sh > ./skript7.sh: line 3: $'clear\r': command not found > Drâ–’cken sie beliebige Tasten und dann return > ': not a valid identifierd: `TASTE > > These are just two of several issues coming up with bash scripting in > Cygwin. Maybe this is merely a corse problem with my platform > understanding. But why is Cygwin calling errors when performing standard > Linux bash commands? Is it due to a different syntax? Or is it even simpler? It looks like your scripts have CRLF line endings. Ken -- 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