Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: v3.0.7 - modifiers
- X-seq: zsh-workers 10154
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Phil Pennock <phil@xxxxxxxxxxx>, Zsh Development Workers <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Re: v3.0.7 - modifiers
- Date: Thu, 16 Mar 2000 05:41:28 +0000
- In-reply-to: <20000316025951.A31900@xxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20000316025951.A31900@xxxxxxxxxxxxxxxxxxxx>
On Mar 16, 2:59am, Phil Pennock wrote:
} Subject: v3.0.7 - modifiers
}
} The manual-page states:
} q Quote the substituted words, escaping further substitutions.
}
} % print ${foo:q}
} zsh: unrecognized modifier `q'
}
} Sorry that I haven't checked the source - installed package on a *BSD
} machine. So ... am I being unusually obtuse (even for me) or is
} something amiss here?
For a very long time, the :q and :x modifiers worked only on history
substitutions. They still don't work on variables in 3.0.x. I thought
this was in the doc somewhere, and it used to be in the FAQ, but it was
apparently dropped from the FAQ entirely when it got fixed in 3.1.6.
I'm trying to figure out now if I was imagining it being in the docs at
all and, if I wasn't imagining it, how it got removed.
In any case :q and :x don't work as they do in csh in any version of
zsh, and it appears that ${foo:x} is still unrecognized in 3.1.6-dev-19
(which probably ought to get put back into the FAQ if PWS eventually
sees this).
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author