Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: expanding parameters like echo/print builtins
On May 11, 7:43pm, Mikael Magnusson wrote:
} Subject: Re: PATCH: expanding parameters like echo/print builtins
}
} What I meant was that the relation between V and g:: isn't documented,
} but yeah, I did miss the whole list :). Here's a patch, minus the
} renumbering of subsequent items.
Renumbering the subsequent items is a nasty bit to leave out, because
there are cross-references among the items that always get forgotten;
I just fixed all of those up a few months ago.
It might be better just to add this to item 12 rather than introduce
a new number.
} Any better names than echo-type expansion? :)
Elsewhere these kinds of things are referred to as "escape sequences"
but then so are %-dohickeys for prompts. Probably would have been
a good idea years ago to refer to the % forms as "expandos" or some
such word ...
But, given that they're all escapes, we could go with
item(tt(12.) em(Escape sequence replacement))(
First any prompt-style formatting from the tt((%)) family of flags is
applied, then any replacements from the tt((g)) flag are performed.
)
The (g) stuff usually involves making the string *shorter* so to call
it an "expansion" is a bit odd. [Is there a potential conflict where
(%) inserts something that (g) then incorrectly replaces, if you use
both of them togher?]
--
Messages sorted by:
Reverse Date,
Date,
Thread,
Author