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

Re: [PATCH] t7508: avoid non-portable sed expression

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Sep 14, 2013, 17:50 UTC
Message-ID
<vpqppsbe1hy.fsf@anie.imag.fr>
In-Reply-To
<1379134032-83211-1-git-send-email-sunshine@sunshineco.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
>  strip_comments () {
> -	sed "s/^\# //; s/^\#$//; s/^#\t/\t/" <"$1" >"$1".tmp &&
> +	tab='	'
> +	sed "s/^\# //; s/^\#$//; s/^#$tab/$tab/" <"$1" >"$1".tmp &&
Sounds trivially right.
Sorry for breaking this.
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Eric Sunshine
Message 2 of 2 in “t7508: avoid non-portable sed expression”
  1. t7508: avoid non-portable sed expressionEric Sunshine, Sep 14, 2013
  2. Matthieu MoySep 14, 2013

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.