public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Newbie Cygdrive questions
Date: Fri, 07 Feb 2014 03:09:00 -0000	[thread overview]
Message-ID: <52F44E59.6050904@cygwin.com> (raw)
In-Reply-To: <52F43166.6040303@ptd.net>

On 2/6/2014 8:05 PM, Mike Rushton wrote:
> I see.
>
>
> What would you say to this ?
>
> I have to use an EDI translator - it runs under windows/dos and had unix
> versions
>
> I was trying this ... but the program needed to see the path of a config
> file ... after the -cp switch.
>
> /cygdrive/c/gentran61SA/lftran /cygdrive/c/gentran61sa/data/EDN -id -cp
> /cygdrive/c/Gentran61SA
>
>
> It gave me errors can not open file /cygdrive/c/Gentran61SA\ediprim.cfg.  It
> was like the program could not figure out
> what style of paths to use.
>
> I changed it to :  (escape out of bash and run this code)
>
> ! c:/gentran61SA/lftran c:/gentran61sa/data/EDN -id -cp c:/Gentran61SA
>
> and it worked perfectly.    Is there a better way to do this ?

Well, as I said before, Cygwin really prefers POSIX paths.  But, as you've
found out, non-Cygwin programs won't understand POSIX paths.  If you need
to interact with non-Cygwin programs, you'll either want to translate the
paths you send to them back to DOS-style paths with cygpath, set up links
that both Windows and Cygwin will understand without translation, or live
somewhat dangerously and use the path-style you found above.  I'm sure
there are other flavors you could find that could also work, at least in
some cases.  The cygpath route is the one approach that fully supports
POSIX paths and DOS-style paths.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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

  reply	other threads:[~2014-02-07  3:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2016125559.9964201.1391712687754.JavaMail.root@ptd.net>
2014-02-06 18:53 ` mrushton
2014-02-06 19:00   ` Larry Hall (Cygwin)
2014-02-06 19:53   ` Richard
2014-02-06 22:37     ` David Conrad
2014-02-07  0:35       ` Mike Rushton
2014-02-07  0:50   ` Andrey Repin
2014-02-07  1:05     ` Mike Rushton
2014-02-07  3:09       ` Larry Hall (Cygwin) [this message]
2014-02-07  3:52         ` Mike Rushton
2014-02-07 13:05           ` Andrey Repin
2014-02-07 13:05       ` Andrey Repin

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=52F44E59.6050904@cygwin.com \
    --to=reply-to-list-only-lh@cygwin.com \
    --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).