public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Achim Gratz <Stromeko@nexgo.de>
To: cygwin-apps@cygwin.com
Subject: Re: Setup patch to keep test version if test version installed
Date: Tue, 03 Feb 2015 20:38:00 -0000	[thread overview]
Message-ID: <874mr2689k.fsf@Rainer.invalid> (raw)
In-Reply-To: <20150203201622.GA14265@calimero.vinschen.de> (Corinna Vinschen's	message of "Tue, 3 Feb 2015 21:16:22 +0100")

Corinna Vinschen writes:
> On Feb  3 18:08, Achim Gratz wrote:
>> Corinna Vinschen writes:
>> > How so?  Setup is not a Cygwin application.
>> 
>> Good point.  Then I've no idea at all, save the compiler.
>
> I had a look into this and even rearranged the behaviour when --help
> output is requested...
>
> However, I'm mildly sure this behaviour didn't change in the last couple
> of years.  The reason is that setup is not a console application but a
> GUI application.  When running a GUI application from CMD, CMD will
> detach.  Of course, when --help output is requested, setup calls
> AllocConsole, but that's too late.  This does not occur in a Cygwin
> shell becasue Cygwin always waits for process completion unless the
> process is sent to the background.
>
> I now made the latest setup 2.864 available as standard setup version
> on sourceware and removed the test releases.

I'm not sure we're talking about the same thing.  I've recently added
code to print an error message along with the parameter usage when a
wrong option or other non-parseable stuff was given instead of simply
exiting with no indication other than the non-zero exit code.  The
changes you've just installed look good to me, but they don't touch the
exit path in question:

--8<---------------cut here---------------start------------->8---
     if (!GetOption::GetInstance ().Process (argc,_argv, NULL))
-      exit (1);
+      {
+	GetOption::GetInstance ().ParameterUsage (cerr
+						  << "\nError during option processing."
+						  << "\nCommand Line Options:\n");
+	exit (1);
+      }
--8<---------------cut here---------------end--------------->8---

I guess with those changes one could now use Log (LOG_TIMESTAMP) instead
of cerr in that place and hopefully the output would appear again?  I
was pretty certain I tested that in both mintty and CMD, but maybe
not...


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf Blofeld V1.15B11:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

  reply	other threads:[~2015-02-03 20:38 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-03 13:56 ASSI
2015-02-03 14:45 ` Achim Gratz
2015-02-03 14:52 ` Achim Gratz
2015-02-03 15:09   ` Achim Gratz
2015-02-03 15:26     ` Corinna Vinschen
2015-02-03 15:49       ` Achim Gratz
2015-02-03 15:32 ` Corinna Vinschen
2015-02-03 16:07   ` Achim Gratz
2015-02-03 16:26     ` Corinna Vinschen
2015-02-03 17:08       ` Achim Gratz
2015-02-03 20:16         ` Corinna Vinschen
2015-02-03 20:38           ` Achim Gratz [this message]
2015-02-03 21:04             ` Corinna Vinschen
2015-02-03 21:28               ` Corinna Vinschen
2015-02-04  8:56                 ` Achim Gratz
2015-02-04  9:01                 ` Corinna Vinschen
2015-02-04 10:20                   ` Corinna Vinschen
2015-02-04 11:20                     ` Achim Gratz
2015-02-04 13:50                       ` Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2015-01-25 17:21 Corinna Vinschen
2015-01-25 18:43 ` Achim Gratz
2015-01-26  9:36   ` Corinna Vinschen
2015-01-25 23:47 ` David Stacey
2015-01-26  9:31   ` Corinna Vinschen
2015-01-26 10:15     ` Achim Gratz
2015-01-26 10:45       ` Corinna Vinschen
2015-01-26 21:19         ` Corinna Vinschen
2015-01-27  6:55           ` Achim Gratz
2015-01-27  9:01             ` Corinna Vinschen
2015-01-27 18:25               ` Achim Gratz
2015-01-27 19:22                 ` Marco Atzeri
2015-01-27 19:34                 ` Corinna Vinschen
2015-01-27 19:59                   ` Achim Gratz
2015-01-27 20:37                     ` Corinna Vinschen
2015-01-27 20:50                       ` Achim Gratz
2015-01-27 20:57                         ` Corinna Vinschen
2015-01-27 21:00                           ` Achim Gratz
2015-01-27 20:59                       ` Corinna Vinschen
2015-01-27 21:04                         ` Achim Gratz
2015-01-27 21:14                           ` Corinna Vinschen
2015-01-28  9:55                             ` Corinna Vinschen
2015-01-28 20:23                               ` Corinna Vinschen
2015-01-28 21:55                                 ` Achim Gratz
2015-01-29  9:47                                   ` Corinna Vinschen
2015-01-29 17:27                                     ` Achim Gratz
2015-01-30  9:42                                       ` Corinna Vinschen
2015-01-30 19:14                                         ` Achim Gratz
2015-01-30 22:18                                           ` Marco Atzeri
2015-01-31  7:30                                             ` Marco Atzeri
2015-02-02  9:17                                           ` Corinna Vinschen
2015-02-05  8:57                                             ` Corinna Vinschen
2015-02-05  9:12                                               ` Achim Gratz
2015-02-05  9:20                                                 ` Corinna Vinschen
2015-02-05  9:41                                                   ` Corinna Vinschen
2015-02-05 13:41                                                     ` Achim Gratz
2015-02-05 15:24                                                       ` Achim Gratz
2015-02-05 15:52                                                         ` Yaakov Selkowitz
2015-02-05 16:17                                                           ` Achim Gratz
2015-02-05 16:01                                                         ` Corinna Vinschen
2015-02-05 19:18                                                           ` Achim Gratz
2015-02-05 19:48                                                             ` Marco Atzeri
2015-02-05 19:54                                                               ` Achim Gratz
2015-02-05 21:47                                                     ` Achim Gratz
2015-02-05 21:58                                                       ` Achim Gratz
2015-02-06  9:24                                                         ` Corinna Vinschen
2015-02-06 11:25                                                           ` Achim Gratz
2015-02-06 11:33                                                             ` Corinna Vinschen
2015-02-06 14:00                                                           ` Eric Blake
2015-02-06 14:51                                                             ` Corinna Vinschen
2015-02-06  9:10                                                       ` Corinna Vinschen
2015-02-08 20:24                                                         ` Achim Gratz
2015-02-09 10:27                                                           ` Corinna Vinschen
2015-02-05 11:00                                               ` Yaakov Selkowitz
2015-02-03 11:33                                 ` Corinna Vinschen
2015-02-03 13:04                                   ` Ken Brown
2015-02-03 15:28                                     ` Corinna Vinschen
2015-02-03 21:50                                       ` Ken Brown
2015-02-04  8:35                                         ` Corinna Vinschen
2015-01-26  9:58 ` Corinna Vinschen
2015-01-26 10:21   ` Achim Gratz
2015-01-26 10:34     ` Corinna Vinschen
2015-01-26 10:31   ` Yaakov Selkowitz

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=874mr2689k.fsf@Rainer.invalid \
    --to=stromeko@nexgo.de \
    --cc=cygwin-apps@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).