Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: new parameter flag?
- X-seq: zsh-workers 7575
- From: Zefram <zefram@xxxxxxxx>
- To: wischnow@xxxxxxxxxxxxxxxxxxxxxxx (Sven Wischnowsky)
- Subject: Re: PATCH: new parameter flag?
- Date: Tue, 31 Aug 1999 13:25:56 +0100 (BST)
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <199908311145.NAA29781@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> from Sven Wischnowsky at "Aug 31, 1999 1:45:59 pm"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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