public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Adding MSYS functionality to Cygwin
Date: Wed, 19 Jun 2013 17:57:00 -0000	[thread overview]
Message-ID: <20130619174514.GA6071@ednor.casa.cgf.cx> (raw)
In-Reply-To: <51C1EAA3.6040307@etr-usa.com>

On Wed, Jun 19, 2013 at 11:30:11AM -0600, Warren Young wrote:
>On 6/18/2013 20:02, Christopher Faylor wrote:
>> On Tue, Jun 18, 2013 at 04:04:06PM -0600, Warren Young wrote:
>>> It would be possible, though somewhat evil, for Cygwin's exec()
>>> implementation to peek at the DLL dependency list of a program before
>>> starting it, and from that infer whether it should automatically
>>> translate paths.
>>
>> Cygwin already does this.  It detects whether the program it is about
>> to run uses the Cygwin DLL and, if not, makes decisions on how to
>> handle exec.  It would be relatively easy to extend this.
>
>Well, given that we're already paying the "peek" cost, I don't have any 
>objection to making exec() take longer for the native Windows case only.
>
>Do you know how you want to cope with my contrived "xcopy /bin a b" 
>example?  The point of the example, of course, is that "/bin" looks like 
>a real, existing POSIX path, but isn't.

I don't think people are getting this:

*How this is implemented doesn't matter*.

I'm talking about providing hooks so that an add-on MSYS dll could
modify the windows command-line.  Then we wouldn't care what MSYS does
with the command-line since it isn't a Cygwin DLL decision.  The goal is
to allow a small DLL to hook into Cygwin and do whatever MSYS wants to
do.

Something like:

callout (CO_EXEC, &command_line);

Where it is expected that the command line could be modified.

The "check-for-windows" code is already there.  Calling out would be
close to a no-op in the non-MSYS cost.  Otherwise, I really don't care
what it costs.

I understand the objections to the way that MSYS does things.  I really
do.  I don't like what it does, either (and I've voiced the same
objections in the past) but we're willing to selectively modify Cygwin
to allow it to be used as the engine that drives future MSYS
development.  The goal would be to collapse the fork back into Cygwin
with minimal cost to the Cygwin DLL.

cgf

--
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:[~2013-06-19 17:45 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-18 18:59 Алексей Павлов
2013-06-18 19:10 ` Christopher Faylor
2013-06-18 19:30 ` Warren Young
2013-06-18 19:31   ` Алексей Павлов
2013-06-18 22:12     ` Warren Young
2013-06-18 22:35       ` Warren Young
2013-06-18 23:51       ` Warren Young
2013-06-19  2:03       ` Christopher Faylor
2013-06-19  7:17         ` Алексей Павлов
2013-06-19  8:15           ` Alexey Pavlov
2013-06-19 11:04           ` Corinna Vinschen
2013-06-19 13:02             ` Alexey Pavlov
2013-06-19 17:31         ` Warren Young
2013-06-19 17:57           ` Christopher Faylor [this message]
2013-06-20  3:30             ` Charles Wilson
2013-06-20 13:12               ` Earnie Boyd
2013-06-20 17:13                 ` Corinna Vinschen
2013-06-19 13:41       ` Charles Wilson
2013-06-19 18:38         ` Warren Young
2013-06-19 19:27           ` Yaakov (Cygwin/X)
2013-06-20 18:11             ` cygport limitations (was: Adding MSYS functionality to Cygwin) Warren Young
2013-06-20 18:44               ` Corinna Vinschen
2013-06-21  4:41                 ` Andrew Schulman
2013-06-21  8:06                   ` Corinna Vinschen
2013-06-21 16:55                     ` Christopher Faylor
2013-06-21 20:35                       ` Andrew Schulman
2013-06-21 21:01                         ` Christopher Faylor
2013-06-24  9:13                       ` Corinna Vinschen
2013-06-24 11:31                         ` Earnie Boyd
2013-06-24 11:56                           ` Corinna Vinschen
2013-06-25 11:12                             ` Csaba Raduly
2013-06-25 12:06                               ` Earnie Boyd
2013-06-21 18:07                 ` cygport limitations Warren Young
2013-06-21 18:38                   ` Warren Young
2013-06-21 19:31                     ` Yaakov (Cygwin/X)
2013-06-24  9:17                       ` Corinna Vinschen
2013-06-20 19:11               ` Yaakov (Cygwin/X)
2013-06-21  7:26                 ` Warren Young
2013-06-20 22:31               ` David Stacey
2013-06-18 21:22   ` Adding MSYS functionality to Cygwin Christopher Faylor
2013-06-18 21:29     ` Warren Young
2013-06-19  2:05       ` Christopher Faylor
2013-06-19  9:05         ` Corinna Vinschen
2013-06-19  9:29           ` Corinna Vinschen
2013-06-19 17:03             ` Warren Young
2013-06-19 17:36               ` Corinna Vinschen
2013-06-18 21:33 ` Charles Wilson
2013-06-19  2:06   ` Christopher Faylor
2013-06-19 13:59     ` Charles Wilson
2013-06-19 15:56 ` Earnie Boyd
2013-06-19 20:25   ` Corinna Vinschen

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=20130619174514.GA6071@ednor.casa.cgf.cx \
    --to=cgf-use-the-mailinglist-please@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).