delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/13/12:02:26

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 13 Aug 2012 18:01:09 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Side-by-side configuration is incorrect reported as permission denied
Message-ID: <20120813160109.GA19589@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <5025C431 DOT 7050201 AT cygwin DOT com> <CA+7connXxSSkw-fhHvqbVanEvX7YHOVVdLndmqmd07xRvFT49Q AT mail DOT gmail DOT com> <20120812170641 DOT GC32748 AT ednor DOT casa DOT cgf DOT cx> <CA+7conm=AXUX9Xfj67tGRgMbrgC47W9QHuQ2L3V2p_=7Cf81GQ AT mail DOT gmail DOT com> <CA+sc5m=myjskB4zG0HARWHvZMQGz-k=j7jT=q1Gny4XpNgMfCg AT mail DOT gmail DOT com> <k09mg3$52l$1 AT dough DOT gmane DOT org> <20120813082716 DOT GA11198 AT calimero DOT vinschen DOT de> <k0b35b$e99$1 AT dough DOT gmane DOT org> <20120813152202 DOT GB14176 AT ednor DOT casa DOT cgf DOT cx> <k0b7n5$m6r$1 AT dough DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <k0b7n5$m6r$1@dough.gmane.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Aug 13 08:49, Andrew DeFaria wrote:
> On 08/13/2012 08:22 AM, Christopher Faylor wrote:
> >But you aren't really even suggesting that.  You are apparently just
> >suggesting that every windows error should be displayed by the Cygwin
> >DLL.  Wow.
> I never said "every" - you did.
> >>I would draw the border at "if there's an error message".
> >You clearly haven't thought this through.  Your screen would be filled with
> >errors.  What happens when something like bash looks for ~/.bashrc and it
> >doesn't exist?  You'd see a "File not found" on your screen.
> That's not even a valid example. Even bash doesn't report that as an
> error as it isn't an error. You're being way to literal here. Let's
> change the statement "If there's an error, that you are gonna
> report, then you should report the best error that you can. One that
> leads to a solution the quickest". Call me silly but saying
> "Permission denied" in this circumstance is not "the best error you
> can report".
> 
> >Ok, so you don't want that one.  You just want the error messages that you
> >care about.  Which of the thousands of Windows errors would we decide to
> >display and which would we ignore?  It's not a solvable problem.
> See above.
> >
> >>>As cgf pointed out, Windows has zillions of error codes.  We wouldn't
> >>>want to generate the same number of POSIX-like error codes.  It wouldn't
> >>>make a lot of sense since POSIX applications only test for a limited,
> >>>expected number of error codes, and it might break things.
> >>I was talking error *messages* not error *codes*.
> >Cygwin and other windows programs do not see error *messages* when
> >something fails, they see error *codes*.  Getting the error *message*
> >involves translating the error *code* into a *message*.  We aren't actively
> >stopping you from seeing an error message.  We are translating a windows
> >error code into a POSIX errno.  Then bash reports the error using a table
> >of error strings that it gets from Cygwin.
> It's the "translation" that seems to be the problem. I understand,
> there's no error code that better translates. This, to me, just
> points out the flaw in the design of error handling and it results
> in bad error messages like the infamous "not a typewriter".
> >The fact that this has to be explained to you pretty clearly illustrates that
> >you don't understand what is going on here.
> I do understand it. I gave a suggesting for how to better handle the
> error given the restrictions in the plumbing you describe.
> >You really should either go thoroughly educate yourself about this or just stop talking.  Earnie's
> >points made here: http://cygwin.com/ml/cygwin/2012-08/msg00257.html are
> >quite pertinent.
> Obviously you're not interested. So be it..

You can't be bothered to leave the high horse, right?  Did we really
sound like people *not* trying to solve this problem?  Unfortunately
not every solution is the best one, it always depends on the perspective
from where you're looking at it.  But you apparently don't want to see
that.  So, ok, probably you're right, we're obviously not interested.
So be it.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019