From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_20,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a05:6214:20a1:: with SMTP id 1mr3719228qvd.30.1613647117073; Thu, 18 Feb 2021 03:18:37 -0800 (PST) X-Received: by 2002:a25:4ce:: with SMTP id 197mr5859912ybe.462.1613647116817; Thu, 18 Feb 2021 03:18:36 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 18 Feb 2021 03:18:36 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=49.180.14.21; posting-account=KPv5RAoAAAA919_K16HMqFyEXEW2A4xw NNTP-Posting-Host: 49.180.14.21 References: <9ad30173-c56b-4889-b2be-6caab9fd9216n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <41fd7791-5526-439e-8eda-ec7242503555n@googlegroups.com> Subject: Re: Version 1.0 Release of aShell From: Rod Kay Injection-Date: Thu, 18 Feb 2021 11:18:37 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:61371 List-Id: On Wednesday, 17 February 2021 at 19:04:44 UTC+11, Niklas Holsti wrote: > On 2021-02-17 1:09, Rod Kay wrote: > > Comments, especially criticism, very welcome :) . > I suppose I could find out by looking more deeply into the component > (which looks nice in the README), but I'm lazy today, so I ask: do you > have a way of capturing the standard-error stream from a process, in > addition to the standard-output stream? With the process 'Start' subprograms, you can provide your own input/output/error pipes. If not provided they default to the standard pipes. function Start (Command : in String; Working_Directory : in String := "."; Input : in Pipe := Standard_Input; Output : in Pipe := Standard_Output; Errors : in Pipe := Standard_Error; Pipeline : in Boolean := False) return Process; The ''Results_Of' function returns 'Command_Results' which provide access to data from both the Output_Pipe and the Error_Pipe. In hindsight, this is not adequate. I will review over the weekend and attempt a better solution.