From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11341 invoked by alias); 5 Sep 2018 08:49: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: 43378 Received: (qmail 18393 invoked by uid 1010); 5 Sep 2018 08:49:10 -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 2.513908 secs); 05 Sep 2018 08:49:10 -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 20180905084905euoutp0114f6710290e5153e023aa631b06f3329~RdMbNl_wz0239102391euoutp01g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1536137345; bh=lVmhD3Gpfprd8gPx9a4luElLKVxRfXcSbwu/z/8JvwU=; h=Date:From:To:Subject:In-Reply-To:References:From; b=QjYOqpWecEKAoTYPAKmU0CKoe2CZLsqKBpq+mwjiqpu8/20Nj4iHCHaU1WDsgFJI3 k+UuQ8gPpeMJHl+zNiXx2Dm8EISmZit7ddvIBjPX6j26OO/eygB1eUJF4yhYzqolGF KjEMHuljA/n6zJpyD0ya4+HIOsa2atwvN8qmyPEM= X-AuditID: cbfec7f2-5c9ff70000001159-a3-5b8f9880b2ad Date: Wed, 5 Sep 2018 09:49:01 +0100 From: Peter Stephenson To: Leo Famulari , Subject: Re: Zsh 5.6 test failures in A05execution.ztst In-Reply-To: <20180905084958.5b1b4552@camnpupstephen.cam.scsc.local> 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+NgFvrKIsWRmVeSWpSXmKPExsWy7djP87oNM/qjDfa9YLe4MfUTs8XB5odM DkweTZccPFYd/MAUwBTFZZOSmpNZllqkb5fAlfF57h/WgvsCFavb7RoYF/F1MXJwSAiYSFya zd3FyMUhJLCCUWLagRlsEM4XRonND26ydjFyAjmfGSVer3UAsUEalu1YxQJRtJxRovvqFWYI B6joYdNXRgjnNKPE5JbJLBDt5xklXp0GG8UioCJxbcoedhCbTcBQYuqm2YwgtoiAtcSECVPB aoQFzCXWbdjOBmJzCrhInGu8zwpyK7+AkMSFZluIK+wlju45yQRi8woISpyc+QRsFbOAvMT2 t3PADpIQ+M8msXvnBGaIojKJy5cmsUA0u0h09G5khLCFJV4d38IOYctI/N85nwmiuZ1RYs2k 1+wQTg+jxKajd6A6rCX6bl9kBLmIWUBTYv0ufYiwo8T997uYIYHKJ3HjrSDEQXwSk7ZNhwrz SnS0CUFUq0nsaNrKOIFReRaSF2YheWEWwvwFjMyrGMVTS4tz01OLDfNSy/WKE3OLS/PS9ZLz czcxAhPD6X/HP+1g/Hop6RCjAAejEg+vRktftBBrYllxZe4hRgkOZiURXhWu/mgh3pTEyqrU ovz4otKc1OJDjNIcLErivHxaadFCAumJJanZqakFqUUwWSYOTqkGxlWObEZyN7oP/pt1MVBy mebsX/UqScE3guUOBfreuf9166IHanNDuf5ekN0pm9y4bU292JHGH90ZChw8N57bzLF+fPnc fle+uZksblvrzlSmda2sTfnIYTY/ZUn5pzVfNz6zX6WWY6J5fc5cXefv/9UXCTne52O+80vo pMOZBf/EJ0inTlq+hUuJpTgj0VCLuag4EQBZWuhoCAMAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprKIsWRmVeSWpSXmKPExsVy+t/xu7r1M/qjDTbtFrK4MfUTs8XB5odM DkweTZccPFYd/MAUwBSlZ1OUX1qSqpCRX1xiqxRtaGGkZ2hpoWdkYqlnaGwea2VkqqRvZ5OS mpNZllqkb5egl/F57h/WgvsCFavb7RoYF/F1MXJySAiYSCzbsYoFxBYSWMoo8ahVCSIuI/Hp ykd2CFtY4s+1LrYuRi6gmo+MEn1vljJDOKcZJd482gblnGeUWPP+CyNIC4uAisS1KXvA2tkE DCWmbpoNFhcRsJaYMGEqK4gtLGAusW7DdjYQm1fAWWL33G9gZ3AKuEica7zPCjF0H6PE2eN7 gYo4OPgFhCQuNNtCnGQvcXTPSSaIXkGJkzOfgPUyC+hInFh1jBnClpfY/nYO8wRG4VlIymYh KZuFpGwBI/MqRpHU0uLc9NxiQ73ixNzi0rx0veT83E2MwCjZduzn5h2MlzYGH2IU4GBU4uHV aOmLFmJNLCuuzD3EKMHBrCTCq8LVHy3Em5JYWZValB9fVJqTWnyI0RQYGBOZpUST84ERnFcS b2hqaG5haWhubG5sZqEkznveoDJKSCA9sSQ1OzW1ILUIpo+Jg1OqgdGkYeMrCfPXX/bIT0py CVr280mmvXdxz5y4w28eRjDflIm8fazjCYd056eXCwwUlTY/Ffp8Vehu/goL1fNs/SKTG3j4 teSCj514a/knUb56jUanh0ajZVh0tbHkt2auWXtPcm+fWc8Z0yFQtnaZboPOn7n3pSofBe14 wrT0R+uK3ev5ZLarH1diKc5INNRiLipOBABLZNQ3qAIAAA== Message-Id: <20180905084903eucas1p291cfed8afb60dd36b272890d8298349d~RdMZzCXLs2511025110eucas1p2l@eucas1p2.samsung.com> X-CMS-MailID: 20180905084903eucas1p291cfed8afb60dd36b272890d8298349d 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> <20180905084958.5b1b4552@camnpupstephen.cam.scsc.local> On Wed, 5 Sep 2018 08:49:58 +0100 Peter Stephenson wrote: > Can you confirm this works OK? Sorry, I've missed quite a lot of the point there. Try this... diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst index fb39d05..b08286f 100644 --- a/Test/A05execution.ztst +++ b/Test/A05execution.ztst @@ -6,16 +6,20 @@ cd command.tmp - print '#!/bin/sh\necho This is top' >tstcmd + shcmd="$(which sh)" + shpath=${shcmd:h} + echocmd="$(which -p echo)" + echopath=${echocmd:h} + print "#!${shcmd}\necho This is top" >tstcmd - print '#!/bin/sh\necho This is dir1' >dir1/tstcmd + print "#!${shcmd}\necho This is dir1" >dir1/tstcmd - print '#!/bin/sh\necho This is dir2' >dir2/tstcmd + print "#!${shcmd}\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 print '#!xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxnyyy' >tstcmd-interp-too-long - print '#!/bin/sh\necho should not execute; exit 1' >xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxn + print "#!${sh}\necho should not execute; exit 1" >xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxn chmod 755 tstcmd dir1/tstcmd dir2/tstcmd chmod 755 tstcmd-slashless tstcmd-arg tstcmd-interp-too-long @@ -40,15 +44,15 @@ 0:path (2) >This is top - PATH=/bin:${ZTST_testdir}/command.tmp/ tstcmd-slashless + PATH=${echopath}:${ZTST_testdir}/command.tmp/ tstcmd-slashless 0:path (3) >This is slashless - PATH=/bin:${ZTST_testdir}/command.tmp tstcmd-arg + PATH=${shpath}:${ZTST_testdir}/command.tmp tstcmd-arg 0:path (4) *>foo */command.tmp/tstcmd-arg - path=(/bin ${ZTST_testdir}/command.tmp/) + path=($shpath $echopath ${ZTST_testdir}/command.tmp/) tstcmd-interp-too-long 2>&1; echo "status $?" path=($storepath) 0:path (5)