[omniORB] argv processing

Michael Keay MKeay@SeeBeyond.com
Tue, 30 Jan 2001 13:05:41 -0800


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C08B00.6723E380
Content-Type: text/plain;
	charset="iso-8859-1"

Thanks Duncan,

Yes that was my impression. We are creating our own argv list and hence no
reason
for using asrgv[0] for -ORB arguments. Ah well.


-----Original Message-----
From: Duncan Grisby [mailto:dgrisby@uk.research.att.com]
Sent: Tuesday, January 30, 2001 8:48 AM
To: Michael Keay
Cc: Omniorb-List@Uk. Research. Att. Com (E-mail)
Subject: Re: [omniORB] argv processing 


On Monday 29 January, Michael Keay wrote:

> Can someone explain why argv processing for -ORB parameters when calling
> ORB_init starts at argv[1] when there seems no reason for it to start at
> argv[0]?

argv[0] is traditionally the name of the program, so omniORB ignores
it. There's no particular reason why it couldn't look at argv[0] too,
but it isn't really a problem to put a dummy name in there if you are
creating your own argv list.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --

------_=_NextPart_001_01C08B00.6723E380
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [omniORB] argv processing </TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Thanks Duncan,</FONT>
</P>

<P><FONT SIZE=3D2>Yes that was my impression. We are creating our own =
argv list and hence no reason</FONT>
<BR><FONT SIZE=3D2>for using asrgv[0] for -ORB arguments. Ah =
well.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Duncan Grisby [<A =
HREF=3D"mailto:dgrisby@uk.research.att.com">mailto:dgrisby@uk.research.a=
tt.com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, January 30, 2001 8:48 AM</FONT>
<BR><FONT SIZE=3D2>To: Michael Keay</FONT>
<BR><FONT SIZE=3D2>Cc: Omniorb-List@Uk. Research. Att. Com =
(E-mail)</FONT>
<BR><FONT SIZE=3D2>Subject: Re: [omniORB] argv processing </FONT>
</P>
<BR>

<P><FONT SIZE=3D2>On Monday 29 January, Michael Keay wrote:</FONT>
</P>

<P><FONT SIZE=3D2>&gt; Can someone explain why argv processing for -ORB =
parameters when calling</FONT>
<BR><FONT SIZE=3D2>&gt; ORB_init starts at argv[1] when there seems no =
reason for it to start at</FONT>
<BR><FONT SIZE=3D2>&gt; argv[0]?</FONT>
</P>

<P><FONT SIZE=3D2>argv[0] is traditionally the name of the program, so =
omniORB ignores</FONT>
<BR><FONT SIZE=3D2>it. There's no particular reason why it couldn't =
look at argv[0] too,</FONT>
<BR><FONT SIZE=3D2>but it isn't really a problem to put a dummy name in =
there if you are</FONT>
<BR><FONT SIZE=3D2>creating your own argv list.</FONT>
</P>

<P><FONT SIZE=3D2>Cheers,</FONT>
</P>

<P><FONT SIZE=3D2>Duncan.</FONT>
</P>

<P><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>&nbsp;-- Duncan Grisby&nbsp; \&nbsp; Research =
Engineer&nbsp; --</FONT>
<BR><FONT SIZE=3D2>&nbsp; -- AT&amp;T Laboratories =
Cambridge&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
--</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp; -- <A =
HREF=3D"http://www.uk.research.att.com/~dpg1" =
TARGET=3D"_blank">http://www.uk.research.att.com/~dpg1</A> --</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C08B00.6723E380--