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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=vikfgTKf2HuChGjD 4A33gAzd0AlcekNJ2zBPYRTBJz6tUm6T6ztW0x0UOdxhRlN7053sPGBopy8JVHno ngTibVUE9rJOo1BQJPf/k2NR3COMRsBPxZRm9uBMz6FUBtP3kO5+Sm450BmGuaCe +whs3iiS5zuRpLyv++qkH8tmdiM= 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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=6DSIcKtnyjcz0SyQUf5T06 nkbo8=; b=JBxeKrmLStX4nBdAHgJL7oGwxmjfssLd5I3LPHliImnSe/icyKEgXF TAnUNj0uUFToLE6tK17DU95e/8O0q/mZZ+mDGMQ8rqizwBiRdqyF8Ef5s5dGcZf9 3mDxDbDzz81oLlqe9xsR5YZ7w02YpTB+mgJ5Tw06BnK4QWBD/jvDw= 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=0.5 required=5.0 tests=AWL,BAYES_50,KAM_NUMSUBJECT,SPF_PASS autolearn=no version=3.3.1 spammy=3.0.7-1, DynV, montrealer, dynv X-HELO: mailsrv.cs.umass.edu Reply-To: moss AT cs DOT umass DOT edu Subject: Re: shell script giving error message "No such file or directory" on cygwin 3.0.7-1 To: cygwin AT cygwin DOT com References: From: Eliot Moss Message-ID: <1b8c44f1-3165-72f7-ee34-4277cea9f585@cs.umass.edu> Date: Fri, 27 Sep 2019 07:18:16 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 9/26/2019 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.) ? 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. Or maybe you meant . filename? That would source a file. Regards - Eliot Moss -- 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