<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>96009</bug_id>
          
          <creation_ts>2005-06-13 13:20 0000</creation_ts>
          <short_desc>sed prints incorrect reference number when the reference is invalid</short_desc>
          <delta_ts>2005-06-13 16:16:37 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>2005.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>exg@gentoo.org</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>exg@gentoo.org</who>
            <bug_when>2005-06-13 13:20:55 0000</bug_when>
            <thetext>When using a \N reference with the &apos;s&apos; command and the reference is invalid sed prints N + 1 as the invalid reference number.You can test it easily with the following command:

echo &apos;something&apos; | sed &apos;s/\(.*\)/\2/&apos;

The attached patch, from upstream, fixes the issue.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>exg@gentoo.org</who>
            <bug_when>2005-06-13 13:21:31 0000</bug_when>
            <thetext>Created an attachment (id=61164)
sed.diff
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chriswhite@gentoo.org</who>
            <bug_when>2005-06-13 13:38:48 0000</bug_when>
            <thetext>Base system re-assignment.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chriswhite@gentoo.org</who>
            <bug_when>2005-06-13 13:38:58 0000</bug_when>
            <thetext>Base system re-assignment.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-06-13 16:16:37 0000</bug_when>
            <thetext>thanks, added to 4.1.4</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>61164</attachid>
            <date>2005-06-13 13:21 0000</date>
            <desc>sed.diff</desc>
            <filename>sed.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IHJlZ2V4cC5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnNyb290L3NlZC9zZWQvc2Vk
L3JlZ2V4cC5jLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjMKcmV0cmlldmluZyByZXZpc2lvbiAx
LjQKZGlmZiAtdSAtcjEuMyAtcjEuNAotLS0gcmVnZXhwLmMJMjcgSmFuIDIwMDUgMDg6MDQ6MzAg
LTAwMDAJMS4zCisrKyByZWdleHAuYwkxMCBGZWIgMjAwNSAwOTo1NDo1MCAtMDAwMAkxLjQKQEAg
LTExMyw3ICsxMTMsNyBAQAogICAgIHsKICAgICAgIGNoYXIgYnVmWzIwMF07CiAgICAgICBzcHJp
bnRmKGJ1ZiwgXygiaW52YWxpZCByZWZlcmVuY2UgXFwlZCBvbiBgcycgY29tbWFuZCdzIFJIUyIp
LAotCSAgICAgIG5lZWRlZF9zdWIpOworCSAgICAgIG5lZWRlZF9zdWIgLSAxKTsKICAgICAgIGJh
ZF9wcm9nKGJ1Zik7CiAgICAgfQogfQo=
</data>        

          </attachment>
    </bug>

</bugzilla>