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

Re: PATCH: new parameter flag?



Sven Wischnowsky wrote:
>+	opts[PROMPTPERCENT] = 1;
>+	if (presc < 2)
>+	    opts[PROMPTSUBST] = opts[PROMPTBANG] = 0;

No, that's nasty.  I can see a need for % expansion, and I can see
a need for prompt expansion, but prompt expansion with % sequences
unconditionally enabled?  If the user wants something so obscure, they
can twiddle the options themselves.  Make the above

	if (presc < 2) {
	    opts[PROMPTPERCENT] = 1;
	    opts[PROMPTSUBST] = opts[PROMPTBANG] = 0;
	}

-zefram



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