delorie.com/archives/browse.cgi | search |
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=vepVbuDqWD7fl+Qd | |
PumtfX7RXeWpcfWQZl05CC+G3Gp0DqT2si9VQHBeduxV1Ebt0bO6uBLnKODB/MBs | |
uJ1ze5AuCzSw4cfzLZinATYG4K9qkR+hh6njYb/Yt3HDG9LEChsk4fFB9fA4eH87 | |
5iS6SHSmCAe5Sub5lg0rAI350yQ= | |
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=xYhWs1uDNoHGtmrQmSkEMV | |
wujjc=; b=NOlC3tdCKlZOpb8a9PuHtrASqiYW0vfmcoHrN/ZPHAbmCy7bqBnSOe | |
q2ZEluHxNIGC1PnIGaL7CDCykhIIYZrbQBVhY1H9KwISSs97MAqyrcts0YOYydwL | |
ksCMmFR5oVsIbvLADP9OdndntWVllNreclHigx3OmJD22GUkIm+pw= | |
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=-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 |
Reply-To: | Cygwin <cygwin AT cygwin DOT com> |
Subject: | Re: -bash: cd: /cygdrive/j/tri60/220-1116c_1.993: No such file or directory |
To: | cygwin AT cygwin DOT com |
References: | <3cdb0cb9-bfe2-9715-65b2-0011ba94e05f DOT ref AT yahoo DOT com> <3cdb0cb9-bfe2-9715-65b2-0011ba94e05f AT yahoo DOT com> |
From: | Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> |
Message-ID: | <06ef031d-48eb-571d-5fdc-df3ef2a18c00@SystematicSw.ab.ca> |
Date: | Mon, 2 Mar 2020 14:23:20 -0700 |
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> |
X-IsSubscribed: | yes |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |