Subject: Re: How to reinstall everything?
From: Brian Inglis <[email-masked]>
To: [email-masked]
Date: Sun, 17 Jan 2021 12:32:15 -0700
List-Id: General Cygwin discussions and problem reports <cygwin.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