Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: optimal expansions?



On Sun, Apr 21, 2024, at 4:13 PM, Stephane Chazelas wrote:
> In any case, for fixed strings, whether to use -- (or - which
> also works for print)  or not is not relevant as long as the
> string doesn't start with "-" (or "+" for some commands).

But that was exactly the situation in question -- not quite a fixed
string, but an argument that cannot begin with "-" or "+".

> print -P "%B%2F${pkg//\%/%%}%f%b"

-- 
vq




Messages sorted by: Reverse Date, Date, Thread, Author