delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/26/22:44:49

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=DuG9/4T8oBBIKDligCoZ8TrQQ3Nmk
ip05LGSK1y4MKl9gCToRLESm39z8jsQTkzUJO2VsPnT7dqgQndmli45lyPbS0Acc
7bNkwLEqtaOECUt05QUygwTrlcAcccYz5MeQnyu71Y/ZplHxPPJH8xKTCkwAYcwI
D/LffhMgp8sorY=
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=WsLUweutDnvvJdnckYPTmHRSN0k=; b=IGa
EeiD9WNztbvMfzfCDt8uCiPsEjGqzSk8LilVvPab8rQ/itn2y1kkNF0Bm2mQ3Oqc
pSlv2jqHQNRFiPjnMkF0TOdGfaGGWcTTp7tbMjepRVta+WAJFrDjVGsWxPZl131x
ks4kj7Ln5pLDPYSYYWYA58Rdd1CMZNpOPxh2/npY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-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
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 <dynvec AT gmail DOT com>
Date: Thu, 26 Sep 2019 22:43:51 -0400
Message-ID: <CAGYhDoNQZWedTz1zDsdgCmgdu47b8oWqCz5ET2XD2tL316mR+Q@mail.gmail.com>
Subject: shell script giving error message "No such file or directory" on cygwin 3.0.7-1
To: Cygwin Project mailing list <cygwin AT cygwin DOT com>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019