On Sun, Jun 12, 2005, Matthias Kurz wrote:

[...]
> >     | $ cvs up
> >     | cvs update: nothing known about `up'
> >     | cvs update: nothing known about `-P'
> >     | cvs update: nothing known about `-d'
> 
> That is the effect, when GNU getopt is not used.

In fact the real problem lies in cvs itself. It sets optind=0 before
it calls getopt. A POSIX conformant getopt exits immediately and returns
-1 in this case, while GNU getopt is a little bit more "tolerant" (aka
non-standard).
There was a thread in bug-gnulib
   http://lists.gnu.org/archive/html/bug-cvs/2005-05/threads.html#00020

I did not insist on changing cvs itself, because i was afraid that this
could cause problems on platforms, where cvs always worked. In fact a
problem like the one that just happened ;)


   (mk)

-- 
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
  >> Im prämotorischen Cortex kann jeder ein Held sein. (bdw) <<
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to