git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/1] Teach for-each-ref about a little language called Tcl.

From
Sergey Vlasov <vsu@altlinux.ru>
Date
Jan 29, 2007, 09:51 UTC
Message-ID
<20070129095122.GB3375@master.mivlgu.local>
In-Reply-To
<7v4pqaeulw.fsf@assigned-by-dhcp.cox.net>
On Sun, Jan 28, 2007 at 12:58:51PM -0800, Junio C Hamano wrote:
Show 21 quoted lines
> Then I'd commit after applying this on top of Shawn's.  Ok?
> 
> diff --git a/quote.c b/quote.c
> index 01db5e2..fb9e4ca 100644
> --- a/quote.c
> +++ b/quote.c
> @@ -395,11 +395,9 @@ void tcl_quote_print(FILE *stream, const char *src)
>  	fputc('"', stream);
>  	while ((c = *src++)) {
>  		switch (c) {
> -		case '[':
> -		case ']':
> -		case '$':
> -		case '\\':
> -		case '"':
> +		case '[': case ']':
> +		case '{': case '}':
> +		case '$': case '\\': case '"':
>  			fputc('\\', stream);
>  		default:
>  			fputc(c, stream);
Looks OK (still didn't have time to actually test this thing).
Previous: Junio C Hamano
Message 4 of 4 in “Teach for-each-ref about a little language called Tcl.”
  1. 1/1 Teach for-each-ref about a little language called Tcl.Shawn O. Pearce, Jan 28, 2007
  2. Sergey VlasovJan 28, 2007
  3. Junio C HamanoJan 28, 2007
  4. Sergey VlasovJan 29, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.