X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:cc:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=rZbhaVXhtHA2aZwa Pu0z+I9hH2+hgUIUun2m2wNHrWnadR9Q+Um+KIm9EXN0oIM7FEfJRGYPKZ/7XGP7 ZBc14fMeqsj6+wKc3HP1Wm6ngugicRe/ob37uGPKAR1HGUnGZyfDEj8y35dHxe/t UrCP8NJU2EKaskzEuXq0WCFdL/I= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:cc:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=fEdxwIkf7Lx+7zxtaWC5Su tBjiE=; b=mgdG2/0IS3m64O2mkArtoK31Oqd4TKniJ9KHZwWNZEsihzSnFsRKGj H43OPDWJL9I7dEkrPL2907msB0jlQM9g55ujxO3d9W+i/ce19ZjozMKUbEwqPDlX 9Q7bJdW/gaYpTbPA03UDmBqtahajhHlCUwZilr4g82EReL3Mw8D9I= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.5 required=5.0 tests=AWL,BAYES_50,EXECUTABLE_URI,KAM_EXEURI,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=kenneth, Saving, Kenneth, Nellis X-HELO: out4-smtp.messagingengine.com X-ME-Sender: Subject: Re: Updated: setup (2.880) To: The Cygwin Mailing List References: <088b3d84-aad8-4984-1892-b66b9714f343 AT dronecode DOT org DOT uk> Cc: "Nellis, Kenneth" From: Jon Turney Message-ID: <64836b8b-3a53-4cf6-cea4-b8406d10c9b9@dronecode.org.uk> Date: Mon, 19 Jun 2017 17:38:22 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 19/06/2017 16:29, Nellis, Kenneth wrote: > #!/bin/sh > # From http://cygwin.com/ml/cygwin/2012-04/msg00714.html > name=setup-x86_64.exe > wget -O $name --quiet http://cygwin.com/$name || exit > # ACL issues require some fixing up after wget > chmod +x $name > exit > > ...but Windows complained about the file format when I tried to launch > it. Then "file" told me... > > $ file *.exe > setup-x86_64.exe: gzip compressed data, from Unix > $ > > ...so I added suffix .gz and then used (actually) WinZip to unzip > it, and it created a working setup.exe. > > So, is this new behavior? Is it to be expected going forward? This behaviour is not expected or wanted. I can't reproduce it, either. > $ wget https://cygwin.com/setup-x86_64.exe > --2017-06-19 17:31:56-- https://cygwin.com/setup-x86_64.exe > Resolving cygwin.com... 209.132.180.131 > Connecting to cygwin.com|209.132.180.131|:443... connected. > HTTP request sent, awaiting response... 200 OK > Length: 906771 (886K) [application/octet-stream] > Saving to: ‘setup-x86_64.exe’ > > setup-x86_64.exe 100%[===================>] 885.52K 550KB/s in 1.6s > > 2017-06-19 17:31:58 (550 KB/s) - ‘setup-x86_64.exe’ saved [906771/906771] > > $ file setup-x86_64.exe > setup-x86_64.exe: PE32+ executable (GUI) x86-64, for MS Windows > > $ xxd setup-x86_64.exe | head -1 > 00000000: 4d5a 9000 0300 0000 0400 0000 ffff 0000 MZ.............. Do you have something in your ~/.wgetrc to add an "accept-encoding: gzip" header or something? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple