X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E61203858423 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1678456059; bh=toyN6ZB3lJX6JxPUoTtBCdsKdHbzbV7tAzfbEUTJsw0=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=kfZEl90GNda7sPlKnDVtharunBty5jrdg6yGU5gasrQ5nY3WVZtihNR8/Gcc4nUDK IcSpQdnWVjS7eAVAP0Kqe9ALzpgj2ZcJHKwAEfKDo2Hfg0nxb9nsFd/DwMM4hcequ7 78+58g8ux8sll0/tj6lygxUGdyVHPruo+Tb+1PTg= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 15A6F3858D1E 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 Date: Fri, 10 Mar 2023 14:47:11 +0100 Message-ID: Subject: General scripting issues vs. Linux To: cygwin AT cygwin DOT com 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 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Markus Becker via Cygwin Reply-To: Markus Becker Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 32ADm3r2027452 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? 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 -- 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