X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; q=dns; s=default; b=gaVxYokjwoLItzCeJKOl+6hQv99HI Yn08PKXEKl4hsy/wokt5ZBwDnLq/mMoalNmCvOex/sKWneTvS/o2pT6zJZAmIvrZ wR4R6yEsPEWI1G/k9Wh3HpPSWGiYHfdZxFBSRNbgJRn3zQ/OVjgJb1mqqe//ZKhR eqsXdgXo28lMgA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; s=default; bh=IqmH4iq1CuTmIue5As5J/TAtX/8=; b=FcB AlHZSbJJi/3V32as8Be0aT8m88aeTb1a/brmo4y17oF6LgHKUiUQ2OyDyvisMYCv PDN18VNx/kFB0r5ue9JvP3jQgM7D7QeI9vZEsZgNXNu+AOXqstdmLN3Ya2AJUhDm ZRgiNEBtiJFGitR4muqfOEQx6sOi+1cCOdXOHvxY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=Brian, inglis, Inglis, CRs X-HELO: mail-qk1-f169.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=h1Nm/VOMX/6pUro+NLhwmlOVPwdaCXKLdv0vNxBklc8=; b=hzIqjYLHnMvxFHRfOWmcur1ujGHV5pWEv5k7Fw1O17jDj/86TUstR7mR8zj3PmihUa Zrzub91w1zOzaruNHVCr8/PX/EZD7HtJazXqR8JhgnREqazPDg5R+pMc/mscym+Sh17g 6mSiDs2TtZQ8broOSVd+Qe9ZpEm2IMPQUZmzLxHmhoU5ltuDgiiG9G/hm17KmMSbm0+E YwnQFC1t5EhiHYV6vshpjVn/n0lCQ4vzR/G70B15fiWmfW2gCdK/pJAIZA8acZIXtmd9 nITzUWykwhxvPsoMYmSGG53JtQZfRm7fUtWsmdmKCrznDg4y88Arwesa3mNoX8I1sTjt dizg== MIME-Version: 1.0 From: DynV Montrealer Date: Fri, 27 Sep 2019 19:59:03 -0400 Message-ID: Subject: Re: Re: shell script giving error message "No such file or directory" on cygwin 3.0.7-1 To: Cygwin Project mailing list Content-Type: text/plain; charset="UTF-8" > On Thu, Sep 26, 2019 at 10:43 PM DynV Montrealer wrote: >> I've tried updating Cygwin a few days ago, hopefully I did it right and it seems its version cygwin 3.0.7-1, with its kernel version 3.0.7(0.338/5/3). If you did not realize it, I'm unfamiliar with Cygwin, as well as with GNU/Linux. >> I managed to do a command that give the result I wanted (I've tested it successfully) ; its censored version is "sed -e 'WORKING_REGEX' -i /cygdrive/REGEX_FILE_FULL_PATH". I then copy-pasted it (from Cygwin64 Terminal) into a file I saved with the extension .sh hoping to have that work as a shell script. I then input in the terminal the uncensored "./cygdrive/SHELL_SCRIPT_FULL_PATH" and got the uncensored version of "-bash: ./cygdrive/SHELL_SCRIPT_FULL_PATH: No such file or directory". Oh! And it likely is the right path as when I do the command "ls /cygdrive/SHELL_SCRIPT_FULL_PATH" it gives the output "/cygdrive/SHELL_SCRIPT_FULL_PATH". >> Is there a way to make a Cygwin shell script with the command? Or do I have to make a text file giving instructions (copy-paste, etc.) ? >> >> Thank you kindly, >> DynV On Thu, Sep 26, 2019 at 11:38 PM Brian Inglis < Brian DOT Inglis AT systematicsw DOT ab DOT ca> wrote: > Shell scripts must be in Unix text format (only \n newlines - no \r CRs) and executable. On Fri, Sep 27, 2019 at 07:18 AM Eliot Moss wrote: > I am confused by your ./cygdrive/SHELL_SCRIPT_FULL_PATH. I would think you should omit the leading dot. cygdrive hangs off the root of the cygwin file system. By doing the 2 former recommendations, it works; I've tried them separately and it fail doing so. Again, thank you. DynV -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple