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

Re: [PATCH] Use character class for sed expression instead of \s

From
Torsten Bögershausen <tboegi@web.de>
Date
Oct 25, 2012, 16:28 UTC
Message-ID
<5089689A.9070301@web.de>
In-Reply-To
<C2AB6973-7BC2-45A4-836E-BB1FAAE7501C@gernhardtsoftware.com>
On 25.10.12 18:00, Brian Gernhardt wrote:
Show 13 quoted lines
> 
> On Oct 25, 2012, at 11:58 AM, Ben Walton <bdwalton@gmail.com> wrote:
> 
>> Sed on Mac OS X doesn't handle \s in a sed expressions so use a more
>> portable character set expression instead.
>>
>> Signed-off-by: Ben Walton <bdwalton@gmail.com>
> 
> Acked-by: Brian Gernhardt <brian@gernhardtsoftware.com>
> 
> I have an identical change sitting in my git.git, I've just been too distracted by other things to commit and send it.
> 
> ~~ Brian Gernhardt
Much nicer, indeed.
BTW: While we are talking CVS: (I installed a fresh version)
cvs --version
Concurrent Versions System (CVS) 1.11.23 (client/server)
And t9200 fails:
git checkout t9200-git-cvsexportcommit.sh
tb@birne:~/projects/git/git.pu/t> ./t9200-git-cvsexportcommit.sh
cvs [init aborted]: Cannot initialize repository under existing CVSROOT: `/Users/tb/projects/git/git.pu/t/trash directory.t9200-git-cvsexportcommit'
FATAL: Unexpected exit with code 1

The following fixes it, but there are possibly better solutions. Any comments/suggestions ?

diff t9200-git-cvsexportcommit.sh t9200-git-cvsexportcommit.tb.sh 28,29c28 < mkdir "$CVSROOT" && < cvs init && ---

> (cvs init || mkdir "$CVSROOT" && cvs init ) &&
Previous: Brian GernhardtNext: Ben Walton
Message 7 of 10 in “t9401 fails with OS X sed”
  1. Brian GernhardtOct 25, 2012
  2. Geert BoschOct 25, 2012
  3. Jeff KingOct 25, 2012
  4. Torsten BögershausenOct 25, 2012
  5. Use character class for sed expression instead of \sBen Walton, Oct 25, 2012
  6. Brian GernhardtOct 25, 2012
  7. Torsten BögershausenOct 25, 2012
  8. Ben WaltonOct 25, 2012
  9. Torsten BögershausenOct 25, 2012
  10. Jeff KingOct 26, 2012

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.