From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99093 invoked by alias); 2 Mar 2020 21:23:25 -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 99083 invoked by uid 89); 2 Mar 2020 21:23:25 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy= X-HELO: smtp-out-no.shaw.ca Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 02 Mar 2020 21:23:23 +0000 Received: from [192.168.1.114] ([24.64.172.44]) by shaw.ca with ESMTP id 8sX2jg0T8kqGX8sX3j5Oqe; Mon, 02 Mar 2020 14:23:21 -0700 Reply-To: Cygwin Subject: Re: -bash: cd: /cygdrive/j/tri60/220-1116c_1.993: No such file or directory To: cygwin@cygwin.com References: <3cdb0cb9-bfe2-9715-65b2-0011ba94e05f.ref@yahoo.com> <3cdb0cb9-bfe2-9715-65b2-0011ba94e05f@yahoo.com> From: Brian Inglis Message-ID: <06ef031d-48eb-571d-5fdc-df3ef2a18c00@SystematicSw.ab.ca> Date: Mon, 02 Mar 2020 21:23:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <3cdb0cb9-bfe2-9715-65b2-0011ba94e05f@yahoo.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2020-03/txt/msg00027.txt On 2020-03-02 13:17, Robert McBroom via cygwin wrote: > #!/bin/bash > cd /cygdrive/j/tri60/221-1344c_1.642 > /home/xxx/grd.sh: line 2: cd: /cygdrive/j/tri60/221- > 1344c_1.642: No such file or directory > mcnp62.sh 221-1344c.mas3.71 221-1344c.mas3.83a.s Any time I see stair stepped output, I suspect Windows code reading Unix text without CRs: #!/bin/bash cd /cygdrive/j/tri60/221-1344c_1.642 /home/xxx/grd.sh: line 2: cd: /cygdrive/j/tri60/221- 1344c_1.642: No such file or directory mcnp62.sh 221-1344c.mas3.71 221-1344c.mas3.83a.s Please check your script line terminators by running file on them, where your PATH points, and if you are running a non-Cygwin Windows executable by running type PROG, which -a PROG, cygcheck on the full explicit executable path, and that cygwin1.dll is listed in the output. You may also see the opposite effect, running Cygwin on \r\n terminated scripts, where cd dir\r fails. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- 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