Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Chatty little precompiler for _arguments
- X-seq: zsh-workers 7962
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Chatty little precompiler for _arguments
- Date: Mon, 20 Sep 1999 16:36:07 +0000
- In-reply-to: <199909200843.KAA06289@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- In-reply-to: <199909201215.OAA07256@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <199909200843.KAA06289@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <199909201215.OAA07256@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On Sep 20, 10:43am, Sven Wischnowsky wrote:
} Subject: Re: Chatty little precompiler for _arguments
}
} Bart Schaefer wrote:
}
} > though it would be really useful if $param:q could emit quoting instead of
} > backslashes.
}
} I would be against this because its much less useful in cases where
} you stuff together string from multiple parameters.
I'm not sure what you're getting at, there.
With 7951 applied, compare:
print -R ${(q):-"$histchars $WORDCHARS $SPROMPT $TIMEFMT"}
print -R ${(qq):-"$histchars $WORDCHARS $SPROMPT $TIMEFMT"}
print -R ${(qqq):-"$histchars $WORDCHARS $SPROMPT $TIMEFMT"}
On Sep 20, 2:15pm, Sven Wischnowsky wrote:
} Subject: PATCH: was: Re: Chatty little precompiler for _arguments
}
} This does that. `${(qqq)foo}' looks a bit silly doesn't it?
The man who wrote
${(@)^${(@)${(@)${(@M)${(@ps:\n:j:\n:)${(@)${(@M)${(@f)$(${~words[1]} --help 2>&1)//\[--/
--}:#[ ]#-*}//,/
}}:#[ ]#--*}#*--}%%[, ]*}:#}
wants to talk about "looks a bit silly"?
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author