zsh-workers
 help / color / mirror / code / Atom feed
* [BUG?] Could anyone test: local a=( 1 2 2 3 ); typeset -U a; echo $a
@ 2017-03-15 10:03 Sebastian Gniazdowski
  2017-03-15 10:46 ` Jérémie Roquet
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Gniazdowski @ 2017-03-15 10:03 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 530 bytes --]

Hello,
I attach screenshot from session. Quite randomly following happened:

% local a=( 1 2 2 3 )
% typeset -U a
% echo $a
2 3

This looks like my other occurrences of random "reply" array
alterations, what I attributed to zsh-autosuggestions or other plugin.
Such plugin could pop first element of "a". But it happened also for "b"
(in the screenshot). Maybe this works for any variable that I enter on
command line. This would mean a bug in Zsh or some really weird plugin.

-- 
  Sebastian Gniazdowski
  psprint3@fastmail.com

[-- Attachment #2: typeset_U.png --]
[-- Type: image/png, Size: 142202 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG?] Could anyone test: local a=( 1 2 2 3 ); typeset -U a; echo $a
  2017-03-15 10:03 [BUG?] Could anyone test: local a=( 1 2 2 3 ); typeset -U a; echo $a Sebastian Gniazdowski
@ 2017-03-15 10:46 ` Jérémie Roquet
  2017-03-15 11:06   ` Sebastian Gniazdowski
  0 siblings, 1 reply; 3+ messages in thread
From: Jérémie Roquet @ 2017-03-15 10:46 UTC (permalink / raw)
  To: Sebastian Gniazdowski; +Cc: Zsh Hackers' List

Hi,

2017-03-15 11:03 GMT+01:00 Sebastian Gniazdowski <psprint3@fastmail.com>:
> % local a=( 1 2 2 3 )
> % typeset -U a
> % echo $a

5.2-dev-1: 1 2 3
5.3.1-dev-0: 1 2 3

Most likely plugins, I guess…

Best regards,

-- 
Jérémie


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG?] Could anyone test: local a=( 1 2 2 3 ); typeset -U a; echo $a
  2017-03-15 10:46 ` Jérémie Roquet
@ 2017-03-15 11:06   ` Sebastian Gniazdowski
  0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Gniazdowski @ 2017-03-15 11:06 UTC (permalink / raw)
  To: Jérémie Roquet; +Cc: Zsh Hackers' List

On Wed, Mar 15, 2017, at 03:46 AM, Jérémie Roquet wrote:
> 5.2-dev-1: 1 2 3
> 5.3.1-dev-0: 1 2 3
> 
> Most likely plugins, I guess…

Thanks.

No Need To Test More.

That skepticism lead me to answer:

% local -A f
% local f=( 1 2 2 3 )
% echo $f
2 3

There's error in the screenshot, I've prepared "b", but did "echo $a".
${(t)a} is association unique. Sorry for unneeded email.

-- 
Sebastian Gniazdowski
psprint3@fastmail.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-15 11:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-15 10:03 [BUG?] Could anyone test: local a=( 1 2 2 3 ); typeset -U a; echo $a Sebastian Gniazdowski
2017-03-15 10:46 ` Jérémie Roquet
2017-03-15 11:06   ` Sebastian Gniazdowski

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).