[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sed --posix
From: |
Simon Josefsson |
Subject: |
sed --posix |
Date: |
Wed, 27 May 2009 12:33:00 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.94 (gnu/linux) |
I'm tracking down why gnulib-tool no longer updates license headers
correctly for me, and it boils down to me upgrading sed recently, and
that gnulib-tool invokes sed with --posix. This works:
address@hidden:~/src/libidn master$ echo 'version 2 '|sed -e 's/version
\(2\|2\.1\)\([ ,]\)/version 3\2/g'
version 3
But adding --posix makes it fail:
address@hidden:~/src/libidn master$ echo 'version 2 '|sed --posix -e
's/version \(2\|2\.1\)\([ ,]\)/version 3\2/g'
version 2
I'm using GNU sed v4.2 from debian testing. I suspected the final g
parameter to s/// but removing that didn't help.
Is this a sed bug? It kind of seems like it, but I'm not certain.
Thanks,
/Simon
- sed --posix,
Simon Josefsson <=