From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23362 invoked from network); 27 May 2020 00:54:43 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 27 May 2020 00:54:43 -0000 Received: (qmail 24118 invoked by alias); 27 May 2020 00:54:35 -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: 45925 Received: (qmail 21451 invoked by uid 1010); 27 May 2020 00:54:35 -0000 X-Qmail-Scanner-Diagnostics: from wout5-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25821. spamassassin: 3.4.4. Clear:RC:0(64.147.123.21):SA:0(-2.6/5.0):. Processed in 3.944961 secs); 27 May 2020 00:54:35 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddvfedgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugfgfgesthektd dttderudenucfhrhhomhepffgrnhhivghlucfuhhgrhhgrfhcuoegurdhssegurghnihgv lhdrshhhrghhrghfrdhnrghmvgeqnecuggftrfgrthhtvghrnheptdfhgfdukefhleetvd egkeegffffgeefieetkedtfeekgfeukeegveekfeegheefnecukfhppeejledrudejiedr feelrdeileenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvg X-ME-Proxy: Date: Wed, 27 May 2020 00:53:53 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: vared doesn't honour leading escaped separator Message-ID: <20200527005353.GA4803@tarpaulin.shahaf.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.10.1 (2018-07-13) [[[ % () { IFS=: vared argv; typeset -p argv } :foo:bar : baz \:foo\:bar:\::baz typeset -g -a argv=( '' foo:bar : baz ) % ]]] When vared opened, I just pressed without changing the line in any way. Accordingly, I expected argv not to be changed by the edit. This is due to the spacesplit() call at the end of bin_vared(). Changing the value of the second parameter (allownull) doesn't fix it, but does cause «typeset -p argv» not to emit the two single quotes around the first value (!?).