From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61666 invoked by alias); 27 Sep 2019 02:43:56 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 61659 invoked by uid 89); 27 Sep 2019 02:43:55 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.1 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=HX-Languages-Length:2166, H*c:alternative, kindly X-HELO: mail-qk1-f177.google.com Received: from mail-qk1-f177.google.com (HELO mail-qk1-f177.google.com) (209.85.222.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Sep 2019 02:43:54 +0000 Received: by mail-qk1-f177.google.com with SMTP id y144so759368qkb.7 for ; Thu, 26 Sep 2019 19:43:54 -0700 (PDT) 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=tf30kEBdic6QuOFHcVK/OUjw3YyNVoRsWihYtlP7JnA=; b=FmThrneZo79NZqQDQq7RUX4RSDK9Gav1KA7NHIGBkph/dNpK+1z1dCfSApmBYkzgNN 7Bty0FzxboGS8/pdYtmxfNED+9fTTlhK8k+3GaW85wsYiQs791q5A0SISi8WDVJz0cfG +qkezSawblqa3pb1gleXH9FRLiwIJhMTqqiHpshXPCu+jiCTWna7Remo3EV8WZikyapn tQEZPA+qczx4BCkiV4ttFx9yRtWYH6uCWY+nsYPlAwp621vHGX51yC6r8+WKtzlC3xmu 3f9kffEY2yJVsYhiy1m2SRANFgbv1/jQHDTaDkwK9FJem7EU+mM2NMdEzE9sQlkVJR0x UQLQ== MIME-Version: 1.0 From: DynV Montrealer Date: Fri, 27 Sep 2019 02:50:00 -0000 Message-ID: Subject: 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" X-SW-Source: 2019-09/txt/msg00266.txt.bz2 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 -- 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