<?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>51525</bug_id>
          
          <creation_ts>2004-05-19 19:41 0000</creation_ts>
          <short_desc>bc 1.06 - getopts bugs</short_desc>
          <delta_ts>2005-02-10 22:13:45 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>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>joe_bruin@hotmail.com</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>joe_bruin@hotmail.com</who>
            <bug_when>2004-05-19 19:41:25 0000</bug_when>
            <thetext>a bug in the argument processing of &apos;bc&apos; (v1.06) prevents it from properly reading long-format options.  compare short opt &quot;-l&quot; versus long opt &quot;--mathlib&quot; for example.  the patch below should fix it.  a spelling error has been fixed as well.  i&apos;ve submitted this patch to the bc author (over a year ago), but the bug persists, so i hope we can at least work it out of the gentoo distribution.

thanks,
shac ron.

--- bc/main.c   Thu May  1 00:35:46 2003
+++ bc/main.c   Thu May  1 01:24:13 2003
@@ -63,7 +63,7 @@
   printf (&quot;usage: %s [options] [file ...]\n%s%s%s%s%s%s%s&quot;, progname,
           &quot;  -h  --help         print this usage and exit\n&quot;,
          &quot;  -i  --interactive  force interactive mode\n&quot;,
-         &quot;  -l  --mathlib      use the predefine math routnes\n&quot;,
+         &quot;  -l  --mathlib      use the predefined math routines\n&quot;,
          &quot;  -q  --quiet        don&apos;t print initial banner\n&quot;,
          &quot;  -s  --standard     non-standard bc constructs are errors\n&quot;,
          &quot;  -w  --warn         warn about non-standard bc constructs\n&quot;,
@@ -127,6 +127,9 @@
          warn_not_std = TRUE;
          break;

+        case 0: /* a longopt was processed */
+          break;
+
        default:
          usage(argv[0]);
          exit (1);</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-02-10 22:13:45 0000</bug_when>
            <thetext>added to bc-1.06-r6

thanks ! :)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>