From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10796 invoked by alias); 5 Sep 2018 07:50:10 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43375 Received: (qmail 18399 invoked by uid 1010); 5 Sep 2018 07:50:09 -0000 X-Qmail-Scanner-Diagnostics: from mailout1.w1.samsung.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(210.118.77.11):SA:0(-6.9/5.0):. Processed in 3.535827 secs); 05 Sep 2018 07:50:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS,SPF_PASS,T_DKIMWL_WL_HIGH,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: p.stephenson@samsung.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180905075001euoutp01d11a2a8bff420f57c6140786cf1111b2~RcY3YRv7v0080900809euoutp01c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1536133801; bh=K0zuqvIFBXmyshDRTLAmbtMex+dDeoohOjIxfnmuoVI=; h=Date:From:To:Subject:In-Reply-To:References:From; b=FYbmuqmKiIvS2IPnsAkuJkW8igPnJNXewUCTxo9rPc0WWCK1pR3jpOz91rt+v0bCN C+ZlbRSmpfUA3fo9hZPpWLsIZ7stcfhHJpVJv99pJjT6JPG/Z0tirNx+s3cX2gq4St KlEBcg7fDkCk0hXIUGLll/OzVDdAIfsF7PgcTyYA= X-AuditID: cbfec7f2-5c9ff70000001159-c6-5b8f8aa8092f Date: Wed, 5 Sep 2018 08:49:58 +0100 From: Peter Stephenson To: Leo Famulari , Subject: Re: Zsh 5.6 test failures in A05execution.ztst In-Reply-To: <20180904224014.GA14458@jasmine.lan> Organization: SCSC X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBIsWRmVeSWpSXmKPExsWy7djPc7oruvqjDa5Ps7K4MfUTs8XB5odM DkweTZccPFYd/MAUwBTFZZOSmpNZllqkb5fAlfHo5i7WgmV8FT27L7A1MJ7l7mLk5JAQMJE4 MvcuYxcjF4eQwApGiWdfjrJAOF8YJZa1fmSDcD4zShxqWsUO09LXeB0qsZxRYtWkTUxwVVcm r2SGcE4zSnx9d4kdwjnPKPHozU1WkH4WARWJS71XGEFsNgFDiambZoPZIgLWEhMmTAWrERYw l1i3YTvQDg4OTqCahhVCICa/gJDEhWZbiCvsJY7uOckEYvMKCEqcnPmEBcRmFpCX2P52DtgN EgK/2SSuNs1ihCgqk1gy8xcTRLOLxPmPjWwQtrDEq+NboF6Tkfi/cz4TRHM7o8SaSa/ZIZwe RolNR+8wQlRZS/TdvsgIchGzgKbE+l36EGFHifvvdzGDhCUE+CRuvBWEOIhPYtK26VBhXomO NiGIajWJHU1bGScwKs9C8sIsJC/MQpi/gJF5FaN4amlxbnpqsWFearlecWJucWleul5yfu4m RmB6OP3v+KcdjF8vJR1iFOBgVOLh1WjpixZiTSwrrsw9xCjBwawkwqvC1R8txJuSWFmVWpQf X1Sak1p8iFGag0VJnJdPKy1aSCA9sSQ1OzW1ILUIJsvEwSnVwDhr/vetrX1l4jz1nO3ri8IN 474nKRkVl4rkhOoYPzc9w1Rb3H2+TorbjXOC55eN/9dJSP9IS8rK8Mj+ELXpf85ru6ddr7j9 JjuvVsx3+Pf6xgI/9s0N57QO9tr/jlJU3N/Cs1lVZbant+JiBdmVHypMFb5FLlL8YPO4MNXr 158FufJZV4rtlFiKMxINtZiLihMBn8vcBgsDAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGIsWRmVeSWpSXmKPExsVy+t/xe7rLu/qjDa79MrG4MfUTs8XB5odM DkweTZccPFYd/MAUwBSlZ1OUX1qSqpCRX1xiqxRtaGGkZ2hpoWdkYqlnaGwea2VkqqRvZ5OS mpNZllqkb5egl/Ho5i7WgmV8FT27L7A1MJ7l7mLk5JAQMJHoa7zO1sXIxSEksJRR4nX7dGaI hIzEpysf2SFsYYk/17qgij4ySrx8+o4dwjnNKLFz52omCOc8o8Sklnlg7SwCKhKXeq8wgths AoYSUzfNBrNFBKwlJkyYygpiCwuYS6zbsJ0NxOYVcJboPPIKyObg4ASqb1ghBDGzhVFi24ov YHF+ASGJC822EBfZSxzdc5IJolVQ4uTMJywgNrOAjsSJVceYIWx5ie1v5zBPYBSehaRsFpKy WUjKFjAyr2IUSS0tzk3PLTbUK07MLS7NS9dLzs/dxAiMk23Hfm7ewXhpY/AhRgEORiUeXo2W vmgh1sSy4srcQ4wSHMxKIrwqXP3RQrwpiZVVqUX58UWlOanFhxhNgWExkVlKNDkfGMN5JfGG pobmFpaG5sbmxmYWSuK85w0qo4QE0hNLUrNTUwtSi2D6mDg4pRoYFxge6yjoPi78oN2kL0mi P4U57uID/i8u/pa/3n4QVFhq3y9kV2Nk7Mn65bn4/cTKRTNDv5dofRXpbF2oKXwg8r8WX5jG fPlLWnwdYr/TvTies94K+J+kLeigO3eifJRZ2D2RGTk9e33OS6xr166/OOfYvUb3D+k3hG0i EkpXbq197XVHRFWJpTgj0VCLuag4EQANHW6eqQIAAA== Message-Id: <20180905075000eucas1p1a912c6e3ec5324dbcf5bd8895ce00be2~RcY1ws1RK1303913039eucas1p1k@eucas1p1.samsung.com> X-CMS-MailID: 20180905075000eucas1p1a912c6e3ec5324dbcf5bd8895ce00be2 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20180904224101epcas1p22c7c1a0fc8465715429c07c0b49177a5 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180904224101epcas1p22c7c1a0fc8465715429c07c0b49177a5 References: <20180904224014.GA14458@jasmine.lan> On Tue, 4 Sep 2018 18:40:14 -0400 Leo Famulari wrote: > While testing the update of Zsh 5.6 for GNU Guix [0] I encountered some > new test failures in the Zsh test suite. > > Specifically, like this: > > ------ > Test ./A05execution.ztst failed: bad status 127, expected 0 from: > PATH=/bin:${ZTST_testdir}/command.tmp/ tstcmd-slashless > Error output: > (eval):1: /tmp/guix-build-zsh-5.6.drv-0/zsh-5.6/Test/command.tmp//tstcmd-slashless: bad interpreter: sh: no such file or directory > Was testing: path (3) > ./A05execution.ztst: test failed. > ------ > > Indeed, in the build environment of Guix packages, there is no /bin/sh > or any other executables at locations that might be familiar and > possible to guess in advance. There is a `sh` (from Bash) on PATH, but > these tests reset PATH. OK, thanks for the report > Our workaround can be seen here: > > https://git.savannah.gnu.org/cgit/guix.git/commit/?id=fcf4841c0ee16631e8330d797cf3788dac0eca05 Heh. Rather than decode a lisp solution I've made my own... Can you confirm this works OK? We'll probably make a 5.6.1 with niggles fixed. Thanks pws diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst index fb39d05..d34e37f 100644 --- a/Test/A05execution.ztst +++ b/Test/A05execution.ztst @@ -6,11 +6,12 @@ cd command.tmp - print '#!/bin/sh\necho This is top' >tstcmd + sh="$(which sh)" + print "#!${sh}\necho This is top" >tstcmd - print '#!/bin/sh\necho This is dir1' >dir1/tstcmd + print "#!${sh}\necho This is dir1" >dir1/tstcmd - print '#!/bin/sh\necho This is dir2' >dir2/tstcmd + print "#!${sh}\necho This is dir2" >dir2/tstcmd print -n '#!sh\necho This is slashless' >tstcmd-slashless print -n '#!echo foo\necho This is arg' >tstcmd-arg