Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
`=' expansion causes script/subshell to exit, bug?
- X-seq: zsh-workers 43574
- From: Vasiliy Ivanov <beelzebubbie.logs@xxxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: `=' expansion causes script/subshell to exit, bug?
- Date: Fri, 28 Sep 2018 01:20:25 +0600
- Autocrypt: addr=beelzebubbie.logs@xxxxxxxxx; prefer-encrypt=mutual; keydata= xsBNBFKzYwoBCACrAKmpHtUMmw9cV851RECsnd/PYi4t5upsOP0uB2s+cByul1m6dJU/oh5W asKMjW9GFIRMOT8ymuoHl/Vtun8gmgI21op2XU4iZC6G8vAdsfmxAzU37KpfFrpOFoBgw/8I N2HooAw4VO9nzuTIt5ozzvPQIoMMRh8cT2ANK/uZB4iNS5DzLVLxb4TCgGxXbO/2WeNhBH5e XNddZY2r8IvqrybpVI2R3pksLHORvj9wAyGMMdo+/rWIhHeaiFZqyiZwGZoGTo/702QoCfkR F/g+grvEgirRUBpMQlMMI89Zkjp9CVxXi7bqQaeJ77dKadBtPr95ZICGNoHTG5elCV59ABEB AAHNNNCS0LDRgdC40LvQuNC5INCY0LLQsNC90L7QsiA8YmVlbHplYnViYmllQHlhbmRleC5y dT7CwH8EEwECACkFAlK1gQcCGyMFCQlmAYAHCwkIBwMCAQYVCAIJCgsEFgIDAQIeAQIXgAAK CRAJw4+3itdoalu1B/9GGP144c+MLXWzjCsGhI6kB5XxkkLw8d7sCZiAwbxBQY9eYwfcm/3W z031qVqrmIY/BLvTCGOB01Gd339Ov2mKtdktO13hojYAv8KOWhRjRx9P+JgxcgzTXHToFJ9P QpexhHRRxufyf8+BfqFTx/DG2q20BPJkxyF8YkbMYOfu0FRXJx0t4eKHAvfFqmP0uLdI/Hd7 fk3Djul7+nEdIpiAGj5fHIXjZzpmDUSekYeEtp0O0S0XAaZa/bO5EvhBjLZkQ3i9F4bPWVjY RAY5Aoi2uyg9ecezK1HCUtw2a3eSXwETPvDrLI7mpSmt+9RCUsUt0L/V42V/01+ha8qVI4YN zsBNBFKzYwoBCAC40mxw0GS0YMGFSqqZpBciHlpRZOeSEVYZqYySKC5p0lklmuT9HhUl4wSK TyGiKDfbYh3xuisAA9ns8uK6U3zsDU/GPlDMtuDWUp5G2suTqlVap25V4N4R5UmdK2RRbrCW irLtu7p4Bas9mwHTMYEA9Vvc9BhhFi3vV+0FB0AId+WmTexr8P/USUQDcBYp0WPxtihCfYKG BzGcRX7duQ45gNVIE18/TTtcIn8ywO0UOmxndSSuEJSJkCtzz4MNHgo8U8ySynXnR71J4SdZ dC1SxPpVzcBtzhzGi11Dx5fervErjCYZjuq8HaZjx6OUebdN47tRVP5LwECYMLI+SlP5ABEB AAHCwGUEGAECAA8FAlKzYwoCGwwFCQlmAYAACgkQCcOPt4rXaGrklgf9Hwx8Udmb9zFE8+xh tEiheaaFZCOFr5Ga7G0ZAN+K3k1YgDPMwpXI0lIH4Fs7QXAZEpYVVJi5BfoT7Oxt0TPGyYcz hiVZRTqzspw51vIQvGDIl47LwFC5OdEGTBoSdVd7fdzIWVecL7lf1URiMYFZhzWYocS7+oSC f60E0s7P12tfYQK2/2f3RI89EBiRK769HaXvROGPNURSCUw+pX19eIgN8WMGsmpjdXl3NhHG xz0u14FsZQ64sD97kHKPqSkg2lMYDmoBcczkuyVAQhGBeCMQZfcetUnbinwAKAQt3ePd49g/ SlLCPez1yFoeyWYFV6cE7hcXQ+KZBcwNHe9PMw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:openpgp:autocrypt:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=JrzrLS01tOGBB0CYuq23fEXoG3hoxqeS3p4RyNct0/w=; b=eYkZCXSjsz9p5AZWSatzpfyUSoaxkCQjUa0g8VbRXgVPmNL0tpLe58QQIOsHWrZraf YUbM3A5bzhWUUQOA0JO+/llgW4uSLg9uvH1tIQhSlrhVRNuReykbERSdRHvANVxQjRfl hJzF8rOoGLQQCEq6+suAtMSoRQKXuK3YLaYQSrCYbgdbcI4qzje9rOXWm5+EjlbeW/iW EQb7h3PRAwwmiR/AiU51r/Wf6Paz90Mh0lEApR/ZSmQ1OMpUYD++jEl3wZ7Av8Dr2DXD XxlqjkH3vTKicTUJUlwZzR78GJSZd+MHXLZ9FvCjMpCFTmBn6upeF2GTge6QfS4CXZSr gFbw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Openpgp: preference=signencrypt
Hello. Recently I've seen that line like
[[ -x =somebinary ]] || cmd
causes script to exit unexpectedly with message like «/path/to/script:$line: =somebinary not found»,
instead of invoking || cmd and continue executing
some simple tests:
% ( [[ -x =123123 ]] || { print 'ohshi'; exit 2 } )
zsh: 123123 not found <exit code 1>
% ( b=123123; print =$b; print 'ohshi' ) ↑
zsh: 123123 not found
Is it intended behaviour?
% zsh --version
zsh 5.6.2 (x86_64-pc-linux-gnu)
--
Regards,
Vasiliy Ivanov <beelzebubbie.logs@xxxxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author