public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: -bash: cd: /cygdrive/j/tri60/220-1116c_1.993: No such file or directory
Date: Mon, 02 Mar 2020 21:23:00 -0000	[thread overview]
Message-ID: <06ef031d-48eb-571d-5fdc-df3ef2a18c00@SystematicSw.ab.ca> (raw)
In-Reply-To: <3cdb0cb9-bfe2-9715-65b2-0011ba94e05f@yahoo.com>

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

  parent reply	other threads:[~2020-03-02 21:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3cdb0cb9-bfe2-9715-65b2-0011ba94e05f.ref@yahoo.com>
2020-03-02 20:17 ` Robert McBroom via cygwin
2020-03-02 20:53   ` Marco Atzeri
2020-03-03 22:02     ` Robert McBroom
2020-03-02 21:23   ` Brian Inglis [this message]
     [not found] <6dd110f4-812e-9d30-2a46-ad494a973b3a.ref@yahoo.com>
2020-03-03  6:08 ` Robert McBroom via cygwin
2020-03-03  9:06   ` Brian Inglis
2020-03-03 15:49   ` Bill Stewart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=06ef031d-48eb-571d-5fdc-df3ef2a18c00@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).