From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.9]) by sourceware.org (Postfix) with ESMTPS id EE8AC386F81B for ; Mon, 18 Jan 2021 22:48:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EE8AC386F81B 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 Received: from [192.168.1.104] ([24.64.172.44]) by shaw.ca with ESMTP id 1dJbl9wBztdld1dJclD94T; Mon, 18 Jan 2021 15:48:05 -0700 X-Authority-Analysis: v=2.4 cv=INe8tijG c=1 sm=1 tr=0 ts=60061025 a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17 a=IkcTkHD0fZMA:10 a=asWo_369AAAA:8 a=uYT-Tk0qkVT609LjNaIA:9 a=QEXdDO2ut3YA:10 a=YnP8LtLWTqQO9u8dPMSg:22 Reply-To: cygwin@cygwin.com To: cygwin@cygwin.com References: <9f016b30-3338-47ce-b734-36aa6a3e981d@gmail.com> <777633643.1693376.1610907809977@mail.yahoo.com> <874kjfe4c0.fsf@Rainer.invalid> <587070012.1721774.1610916823028@mail.yahoo.com> From: Brian Inglis Organization: Systematic Software Subject: Re: How to reinstall everything? Message-ID: <39dca0ab-c559-6499-aec7-a616c23a3d94@SystematicSw.ab.ca> Date: Mon, 18 Jan 2021 15:48:03 -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: <587070012.1721774.1610916823028@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfF95CTg5XRHkignGz0cH4tmDToJRMJe2HYvvxQDi2Ic8BqjhbB01XEqultt6P0GdTRg7gK+pIjFkTJiPY+/mlWWwrF4OkL1Uqp6mmoLy5bJn6zf8WCk5 Gp0GcldJa4ZcamVrnTR8Qqu4+EJLs14GAYxYo1pG1GXo2G/O48Fh0aide1P4GOOr8if2bSx43kNmYcD09GKvGNAUl2ZTfLJQDA4= X-Spam-Status: No, score=-5.7 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=no 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2021 22:48:07 -0000 On 2021-01-17 13:53, matthew patton via Cygwin wrote: > On Sunday, January 17, 2021, 02:44:37 PM EST, Achim Gratz wrote: >>matthew patton via Cygwin writes: >>> can we fix setup.exe to read STDIN with '-P', like so? >>> echo 'pkg1,pkg2,pkg3' | setup.exe -P - > >> You probably forgot that setup is a Windows program.  besides, you must >> not start it from the Cygwin that you are about to install a package into. For years I've run Cygwin Setup from a script that: * checks if a new version gets downloaded and verifies it; * downloads and verifies setup.ini, checking if my nearby mirror is up and up to date; * starts Task Scheduler to allow me to run elevated shut down tasks for old cron processes, Cygwin services, remaining detached processes; * starts Task Manager/Details/order by Image Path to check all processes are gone and allow me to deal with any left; * starts Cygwin Setup with my setup.rc parameters and any new packages to install; * kills off interactive mintty, console and pty X, bash, and its own process. > so Windows programs can't be written to read from STDIN? I can't think of any Unix utility that uses commas to delimit. And any Windows one that uses commas is clearly improper/wrong as well. > If "you're not supposed to invoke setup.exe from within cygwin" were true then all the 'xargs' and 'paste' workarounds are null and void. And no, I don't automatically reach for xargs to bandaid around poorly written programs that violate 50 years of convention. It's a Windows program with 20 years of its own history built with no proprietary tools! You can change it. Remember it was only recently that Windows gained support for quoted command line and long args, so work arounds to allow running with argument lists from command.com and .bat scripts were required, and have been retained for compatibility with downstream usages. Window utilities with similar requirements have each added their own unique option handling quirks to deal with them e.g. > sc = ... -- 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.]