X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 12097389680D
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
 header.from=SystematicSw.ab.ca
Authentication-Results: sourceware.org;
 spf=none smtp.mailfrom=brian.inglis@systematicsw.ab.ca
X-Authority-Analysis: v=2.4 cv=LvQsdlRc c=1 sm=1 tr=0 ts=600490c0
 a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17
 a=IkcTkHD0fZMA:10 a=DMOrhDny0nKCKzxp1JIA:9 a=QEXdDO2ut3YA:10
To: cygwin@cygwin.com
References: <DB7PR02MB39968E1E7F98B672D599DB2FE7A60@DB7PR02MB3996.eurprd02.prod.outlook.com>
 <9f016b30-3338-47ce-b734-36aa6a3e981d@gmail.com>
 <777633643.1693376.1610907809977@mail.yahoo.com>
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
Organization: Systematic Software
Subject: Re: How to reinstall everything?
Message-ID: <8d4329db-e0c1-3cea-05ed-daf41a527e35@SystematicSw.ab.ca>
Date: Sun, 17 Jan 2021 12:32:15 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
 Thunderbird/78.6.1
MIME-Version: 1.0
In-Reply-To: <777633643.1693376.1610907809977@mail.yahoo.com>
Content-Language: en-CA
X-CMAE-Envelope: MS4xfNqfH1Ehre2kskjvTflaFrIA0eIhEB0dn2BqPooUxVUS17BXF9Xcq428EEAgIsYlCQKF02Ka1UmAX5dT2tCxpDxCOqU4Q8xJZPDS42kXsxWCUdn/EV9O
 HPCCTyfr7GsHSnitIQO2etnlYav1vMy/KR6Nv+1pjCcl5CigcIQCk9uQNIAPOdkBUuZu56Q4/aNnhx/2DEIHgK/bXaKRGIyPeZY=
X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
 KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,
 RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Reply-To: cygwin@cygwin.com
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

On 2021-01-17 11:23, matthew patton via Cygwin wrote:
> can we fix setup.exe to read STDIN with '-P', like so?
> $ echo 'pkg1,pkg2,pkg3' | setup.exe -P -
> and even more useful if the argument can be space delimited.
> $ setup.exe -P pkg1 pkg2 pkg3
> or if that's too much
> $ setup.exe -P pkg1 -P pkg2 -P pkg3

"Use the shell and utilities, Luke!" - prefixed echo to setup.exe for demo:

$ echo setup.exe -P `echo a,b,c`
setup.exe -P a,b,c
$ echo setup.exe -P $(echo a,b,c)
setup.exe -P a,b,c
$ echo a,b,c | xargs echo setup.exe -P
setup.exe -P a,b,c
$ cat file
a
b
c
$ paste -d, -s file | xargs echo setup.exe -P
setup.exe -P a,b,c

$ man dash
$ man bash
$ cygstart /usr/share/doc/bash/html/bash.html
$ cygstart /usr/share/doc/bash/html/bashref.html
$ man xargs

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
