From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: How to run external program pipeline and capture output Date: Tue, 29 Oct 2019 17:47:41 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 29 Oct 2019 16:47:43 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="9fd88ef5802192d0a64dcef96697314a"; logging-data="15745"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HpDZ5CSLPknD2hJZaAPrNW2Phj/OfyNc=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 Cancel-Lock: sha1:59EpqaLx3LlfMomBijaHf2Psb04= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:57374 Date: 2019-10-29T17:47:41+01:00 List-Id: Den måndag 28 oktober 2019 kl. 18:24:41 UTC+1 skrev Alain De Vos: > I like to run a command like : > /usr/local/bin/zsh -c "/bin/ls | /usr/bin/grep a" > But the procedure below produces no ouput, My advice on this kind of thing is to do as much of it as possible in Ada. Since Ada.Directories lets you do "ls" kind of things, and you can select from the resulting file names using one of several regular-expression libraries if you like, I don't see any need to become non-portable. -- Jeff Carter "You cheesy lot of second-hand electric donkey-bottom biters." Monty Python & the Holy Grail 14