Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in parameter expansion with :- ?
- X-seq: zsh-workers 40324
- From: Ronald Fischer <ynnor@xxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: Bug in parameter expansion with :- ?
- Date: Tue, 10 Jan 2017 16:55:43 +0100
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=mm.st; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=BsjGtK8epXe/ZZWnUMBGXxuUhU A=; b=N6yjoUW7a5Qf8HXA666DrwzKWO1VnM+V2gEeDyubQKNU1MmADHv06JnSQm cDZfnzbBwuEvSEh3YFuagKMSHrVleOdo45TaIUAExSuB881um3UbZ/MdZqGiNoKn JxXfdE+MIw97vYmKKsyR5YMAbQ+MkI7ySW14/4AXGInFzVYsw=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=smtpout; bh=Bs jGtK8epXe/ZZWnUMBGXxuUhUA=; b=T0kCXZqTTkeJdHd2fgfElVvMQqY/9yko8o FBeQQ6na4zgn5HYCTntp514UmermMY2/10Gidlm3/GVjDr9Bb4mo5g5/gsTc4N7H 0xrQok7nFaX63vEqCl/B8OX8GmaEQHZFaFRKCOFyb4G0BO3gBChN9u1jTGG6MC18 IAPKrJJn0=
- In-reply-to: <20170110154318.58b2b994@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20170110153530epcas3p444d88e1dff85a69371df2472330b006b@epcas3p4.samsung.com> <1484062500.4181388.843189521.58854935@webmail.messagingengine.com> <20170110154318.58b2b994@pwslap01u.europe.root.pri>
On Tue, Jan 10, 2017, at 16:43, Peter Stephenson wrote:
> On Tue, 10 Jan 2017 16:35:00 +0100
> Ronald Fischer <ynnor@xxxxx> wrote:
>
> > This expands correctly to a '+':
> >
> > ${unset_variable:-+}
> >
> > This however doesn't expand to a '-', but to the empty string:
> >
> > ${unset_variable:--}
>
> You may be getting into confusions with options to builtins rather than
> the expansion.
>
> % print -r -- ${unset_variable:--}
> -
Yes I do! You are right - not a bug!
Ronald
Messages sorted by:
Reverse Date,
Date,
Thread,
Author