Date: Sat, 18 Dec 2004 00:04:20 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 476 ************************************************** Friday 17 December 2004 Number 476 ************************************************** Subjects for today 1 Re: Openjade - GCC 3.3.5 - and a dumb question about linking : lsunley at mb.sympatico.ca 2 Re: Openjade - GCC 3.3.5 - and a dumb question about linking : John Poltorak 3 adding shell variables : John Poltorak 4 Re: adding shell variables : Stefan.Neis at t-online.de 5 Re: adding shell variables : Thomas Dickey 6 Re: adding shell variables : John Poltorak 7 Re: adding shell variables : John Poltorak 8 Re: Slight problem with GCC3.3.5 dlopen : lsunley at mb.sympatico.ca **= Email 1 ==========================** Date: Thu, 16 Dec 2004 18:38:03 -0500 From: lsunley at mb.sympatico.ca Subject: Re: Openjade - GCC 3.3.5 - and a dumb question about linking Hi In <20041216100401.D46 at warpix.org>, on 12/16/04 at 10:04 AM, John Poltorak said: >On Sun, Dec 12, 2004 at 11:05:49AM -0500, lsunley at mb.sympatico.ca wrote: >> I have built both openjade and opensp and they seem to work. Does anyone >> have a project dealing with xml and sgml that they need this for? >I've noticed a number of packages which come with documentation in sgml >format, but have never known what to do with it. Would either of these >apps let me do that? That is what it is supposed to do. It will take an SGML file and render it as HTML ot tex and a couple of other formats. PostgeSQL uses it to generate the HTML docs from the SGML source file. I'll put the two packages - OpenSP and OpenJade - on Hobbes tonight Lorne -- ----------------------------------------------------------- lsunley at mb.sympatico.ca ----------------------------------------------------------- **= Email 2 ==========================** Date: Fri, 17 Dec 2004 09:49:49 +0000 From: John Poltorak Subject: Re: Openjade - GCC 3.3.5 - and a dumb question about linking On Thu, Dec 16, 2004 at 06:38:03PM -0500, lsunley at mb.sympatico.ca wrote: > Hi > > In <20041216100401.D46 at warpix.org>, on 12/16/04 > at 10:04 AM, John Poltorak said: > > >On Sun, Dec 12, 2004 at 11:05:49AM -0500, lsunley at mb.sympatico.ca wrote: > > >> I have built both openjade and opensp and they seem to work. Does anyone > >> have a project dealing with xml and sgml that they need this for? > > >I've noticed a number of packages which come with documentation in sgml > >format, but have never known what to do with it. Would either of these > >apps let me do that? > > That is what it is supposed to do. It will take an SGML file and render it > as HTML ot tex and a couple of other formats. PostgeSQL uses it to > generate the HTML docs from the SGML source file. > > I'll put the two packages - OpenSP and OpenJade - on Hobbes tonight Will you include any patches and build instructions? > Lorne > > -- > ----------------------------------------------------------- > lsunley at mb.sympatico.ca > ----------------------------------------------------------- > -- John **= Email 3 ==========================** Date: Fri, 17 Dec 2004 10:59:56 +0000 From: John Poltorak Subject: adding shell variables How do I add variables in a shell script? if x=1 and y=2 how do make z=x+y? If I say z=$x+$y then echo $z returns '1+2'. -- John **= Email 4 ==========================** Date: Fri, 17 Dec 2004 12:13:24 +0100 (CET) From: Stefan.Neis at t-online.de Subject: Re: adding shell variables John Poltorak schrieb: > > How do I add variables in a shell script? > > if x=1 and y=2 how do make z=x+y? z=`expr $x + $y` should do... Regards, Stefan **= Email 5 ==========================** Date: Fri, 17 Dec 2004 06:58:31 -0500 (EST) From: Thomas Dickey Subject: Re: adding shell variables On Fri, 17 Dec 2004, John Poltorak wrote: > > How do I add variables in a shell script? > > if x=1 and y=2 how do make z=x+y? > > If I say z=$x+$y then echo $z returns '1+2'. Bourne shell z=`expr $x + $y` or (Korn shell) z=$(($x + $x)) -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net **= Email 6 ==========================** Date: Fri, 17 Dec 2004 12:08:23 +0000 From: John Poltorak Subject: Re: adding shell variables On Fri, Dec 17, 2004 at 06:58:31AM -0500, Thomas Dickey wrote: > On Fri, 17 Dec 2004, John Poltorak wrote: > > > > > How do I add variables in a shell script? > > > > if x=1 and y=2 how do make z=x+y? > > > > If I say z=$x+$y then echo $z returns '1+2'. > > Bourne shell > > z=`expr $x + $y` > > or (Korn shell) > > z=$(($x + $x)) Thanks for that - this does work under OS/2's PDKSH. > -- > Thomas E. Dickey > http://invisible-island.net > ftp://invisible-island.net -- John **= Email 7 ==========================** Date: Fri, 17 Dec 2004 12:03:23 +0000 From: John Poltorak Subject: Re: adding shell variables On Fri, Dec 17, 2004 at 12:13:24PM +0100, Stefan.Neis at t-online.de wrote: > John Poltorak schrieb: > > > > How do I add variables in a shell script? > > > > if x=1 and y=2 how do make z=x+y? > > z=`expr $x + $y` should do... Many thanks, that works fine... My book on Unix Shell programming doesn't mention the use of expr, it has something like:- z="$x + y" (not $y) Don't know if that is a typo, but can't get any similar combination to work without the use of expr... Maybe it depends on which shell is being used. Once I do manage to evaluate z, I want to use it in another expression:- date --date='($z) days' Is this the right way to do it? I'm trying to evaluate which is the first Monday at or before the start o of the year using the date utility. #/bin/sh x=`date +%j` echo $x date --date='-351 days' y=`date +%w --date='-351 days'` echo $y z=`expr -$x + 1 - $y + 1` echo $z date --date='($z) days' date --date='-354 days' I would expect the last two expressions to show the same date but I get:- 352 Thu Jan 1 11:57:43 GMT 2004 4 -354 Sat Dec 18 11:57:43 GMT 2004 Mon Dec 29 11:57:44 GMT 2003 Maybe I need to incorporate 'eval' into this... > Regards, > Stefan -- John **= Email 8 ==========================** Date: Thu, 16 Dec 2004 18:37:01 -0500 From: lsunley at mb.sympatico.ca Subject: Re: Slight problem with GCC3.3.5 dlopen I have it now... Will be trying this out with beta2 Lorne In <20041216093550.C46 at warpix.org>, on 12/16/04 at 09:35 AM, John Poltorak said: >On Fri, Dec 10, 2004 at 12:43:23PM -0500, lsunley at mb.sympatico.ca wrote: >> I am getting a 123 error from dlopen (invalid name) >> >> dlopen rc=123 extra=M:\USR\LOCAL\PGSQL\LIB\EUCJPSJI.DLL >> >> When I shorten the DLL name by 1 char the load works. >> >> M:\USR\LOCAL\PGSQL\LIB\EUCJPSJ.DLL will load >> >> Is there some kind of path limit in there or something? >Have you tried beta2? > >> Lorne >> >> -- >> ----------------------------------------------------------- >> lsunley at mb.sympatico.ca >> ----------------------------------------------------------- -- ----------------------------------------------------------- lsunley at mb.sympatico.ca -----------------------------------------------------------