From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by sourceware.org (Postfix) with ESMTPS id 15A6F3858D1E for ; Fri, 10 Mar 2023 13:47:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 15A6F3858D1E 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-yw1-x112e.google.com with SMTP id 00721157ae682-536af432ee5so99259757b3.0 for ; Fri, 10 Mar 2023 05:47:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678456042; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=pTlS0L5Hhd4hGSKXLKF1+V/zCvb5BKjwS0NIISQapYs=; b=EBYGiYy/XiFUKPSQAAzjZ+q6xNdHP6lS3hoek1YNsuztFtsJZ0XdhJWNybiK569xuX QxSgArF4D1Kj6IQGU/08TwEttr/iPbGhpUUeglgop1aAK4s4eXkHtGGzJCWgxnixNAXO r8a1lRDxkAMioIpe52Ro260I2SanUYhMbIgjysbw/kT17JUXVtfduyDOjpdLzuFYoBhR K0djZmr61+l//uQR6T3CN6x+3RCLtg1CJKH4eVFfv1j0UsLBGmHPLHs8X7AXWc/rUWu1 cnb8Pwl7BxRBn0ZFvdSJFwBr1QmVLXclRFDj0+c/Oym2FtklQcKR1mQG2pjXbsEMNeYA xtoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678456042; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=pTlS0L5Hhd4hGSKXLKF1+V/zCvb5BKjwS0NIISQapYs=; b=ZmHwMo1dhlGxABRNvOyQkIs2ICa3zMiM1qfcE3wJoEskasC0uO69uOFmfe8743yuVw Vr5ewOjz8+CKDDCvznK0Cn+WYR1SJd5uZwi4q4Jq8twN+5McYB+OQ+PWA0RHoUlQU1Bt 6qRvcKYkipoi8Z8dmL/LbvKQQSh9Oey9vPgoQHk1eMZTqG72P07YYzWHX8nJyDE2bTGk Txml4TKhfEM99WYq1hNrw/DgF4odDnOsn7hw1cJyKeQ4s2rS5/rZSV9ZD3g60oh58sf3 1GBY7Y9t9dNKbMFnHAzZt7U0oUTUYXXenpARidSUI/5yqulwfIFFRMXb9R0L2UfQR0My nUsA== X-Gm-Message-State: AO0yUKW1YDKizKCxai3BsodL6coBh9iYBzspt4Sj0O8xn64D52lToRqP QNkav3v7nZTCXyWhAEARLqUtt/KZfnd0qAKv/1UrgCpQodE= X-Google-Smtp-Source: AK7set9ChNP9sABKTi5OTPkliMrgomzAKjgm2ub9R9I8Ab0FnUfsgpSnbFPxlrhfLkUageYJvyScXouw0gVXBEsHBuQ= X-Received: by 2002:a81:b612:0:b0:52e:ec03:9b2f with SMTP id u18-20020a81b612000000b0052eec039b2fmr16531614ywh.8.1678456042444; Fri, 10 Mar 2023 05:47:22 -0800 (PST) MIME-Version: 1.0 From: Markus Becker Date: Fri, 10 Mar 2023 14:47:11 +0100 Message-ID: Subject: General scripting issues vs. Linux To: cygwin@cygwin.com Content-Type: multipart/alternative; boundary="0000000000002e5a6405f68c0047" X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP 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: --0000000000002e5a6405f68c0047 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3D"This is the testscript number 3" FILE=3D"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=E2=96=92cken 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? I would appreciate any advice and information on this. As i said, i am quite used to Cygwin, but not so to scripting in Cygwin. Thanks a lot Markus --0000000000002e5a6405f68c0047--