Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	autolearn_force=no version=3.4.0
X-Biglobe-Sender: <takimoto-j@kba.biglobe.ne.jp>
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
Subject: Re: [BUG] quoting within bracket patterns has no effect
From: "Jun T." <takimoto-j@kba.biglobe.ne.jp>
In-Reply-To: <20160119173511.53b92033@pwslap01u.europe.root.pri>
Date: Wed, 20 Jan 2016 19:48:00 +0900
Content-Transfer-Encoding: 7bit
Message-Id: <A7E28A2F-E785-4EAF-A1E3-961D4AF95456@kba.biglobe.ne.jp>
References: <569C68AB.2010806@inlv.org> <20160118172434.2fb7d5b9@pwslap01u.europe.root.pri> <C61F4B81-0BCF-45CD-9DE3-202ED2D268FF@kba.biglobe.ne.jp> <20160119173511.53b92033@pwslap01u.europe.root.pri>
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
X-Mailer: Apple Mail (2.1510)
X-Biglobe-Spnum: 57168
X-Seq: zsh-workers 37704

vcs_info doesn't work due to the '-'/Dash problem.
It fails at line 6 of VCS_INFO_get_cmd:
vcs_comm[cmd]=${cmd:-$vcs}

In gettokstr(), seen_brct is set to 1 by the '[' and
never reset to 0, and the '-' is converted to Dash.

% x=
% y=yes
% echo ${x:-$y}
yes
% a[1]=${x:-$y}
% echo '<'$a[1]'>'
<>

