re: piperead arithmentic

2003-03-29 Thread Elliot Sowadsky
piperead example in faq gives shell syntax error AddToFunc CenterWindow + I ThisWindow Piperead echo Move \ $(( $[vp.width]/2-$[w.width]/2 ))p \ $(( $[vp.height]/2-$[w.height]/2 ))p sh complains about missing ( Actually i'm trying to calculate which horizontal

Re: piperead arithmentic

2003-03-24 Thread Dominik Vogt
On Sun, Mar 23, 2003 at 06:30:32PM -0800, Elliot Sowadsky wrote: 2.5.6 on solaris 5.8 piperead example in faq gives shell syntax error AddToFunc CenterWindow + I ThisWindow Piperead echo Move \ $(( $[vp.width]/2-$[w.width]/2 ))p \ $(( $[vp.height]/2-$[w.height]/2

Re: piperead arithmentic

2003-03-24 Thread Marcin Pawlik
On Mon, Mar 24 at 10:33, Dominik Vogt wrote: On Sun, Mar 23, 2003 at 06:30:32PM -0800, Elliot Sowadsky wrote: 2.5.6 on solaris 5.8 piperead example in faq gives shell syntax error AddToFunc CenterWindow + I ThisWindow Piperead echo Move \ $(( $[vp.width]/2-$[w.width]/2

Re: piperead arithmentic

2003-03-24 Thread Danek Duvall
On Mon, Mar 24, 2003 at 08:40:15AM -0500, Dan Espen wrote: This is what the Solaris 8 man page says about popen (what PipeRead uses): execl(/usr/bin/ksh, ksh, -c, command, (char *)0); This is actually a bug in Solaris 8, which is fixed with patch 108827-40 (108828-40 for x86), so

Re: piperead arithmentic

2003-03-24 Thread Dan Espen
Danek Duvall [EMAIL PROTECTED] writes: On Mon, Mar 24, 2003 at 08:40:15AM -0500, Dan Espen wrote: This is what the Solaris 8 man page says about popen (what PipeRead uses): execl(/usr/bin/ksh, ksh, -c, command, (char *)0); This is actually a bug in Solaris 8, which is fixed

Re: piperead arithmentic

2003-03-24 Thread Danek Duvall
On Mon, Mar 24, 2003 at 03:43:58PM -0500, Dan Espen wrote: On my Solaris 8 system, /usr/xpg4/bin/sh is a link to /usr/bin/ksh which happens to the the same as /bin/ksh. The sh man page confirms this: The /usr/xpg4/bin/sh utility is identical to /usr/bin/ksh. Okay. This is

Re: piperead arithmentic

2003-03-24 Thread Dan Espen
Danek Duvall [EMAIL PROTECTED] writes: On Mon, Mar 24, 2003 at 03:43:58PM -0500, Dan Espen wrote: On my Solaris 8 system, /usr/xpg4/bin/sh is a link to /usr/bin/ksh which happens to the the same as /bin/ksh. The sh man page confirms this: The /usr/xpg4/bin/sh utility is

Re: piperead arithmentic

2003-03-24 Thread Michael Han
On Mon, Mar 24, 2003 at 04:18:59PM -0500, Dan Espen wrote: Command Result in /bin/ksh Result in /usr/xpg4/bin/sh echo $((010+10 )) 20 18 echo $((010+10 )) 29 error [ 10 -le $((011)) ] true false

Re: piperead arithmentic

2003-03-24 Thread Danek Duvall
On Mon, Mar 24, 2003 at 01:25:26PM -0800, Michael Han wrote: On Mon, Mar 24, 2003 at 04:18:59PM -0500, Dan Espen wrote: Command Result in /bin/ksh Result in /usr/xpg4/bin/sh echo $((010+10 )) 20 18 echo $((010+10 )) 29

Re: piperead arithmentic

2003-03-24 Thread Dan Espen
Danek Duvall [EMAIL PROTECTED] writes: On Mon, Mar 24, 2003 at 01:25:26PM -0800, Michael Han wrote: On Mon, Mar 24, 2003 at 04:18:59PM -0500, Dan Espen wrote: Command Result in /bin/ksh Result in /usr/xpg4/bin/s h echo $((010+10 )) 20 18

Re: piperead arithmentic

2003-03-24 Thread Danek Duvall
On Mon, Mar 24, 2003 at 05:02:16PM -0500, Dan Espen wrote: How about a bug report for the lack of posix compliance in /bin/sh? Or is it a compiler issue or popen? /bin/sh (and all the other utilities in /bin) is not expected to be posix compliant. If you want posix compliance, you should be

piperead arithmentic

2003-03-23 Thread Elliot Sowadsky
2.5.6 on solaris 5.8 piperead example in faq gives shell syntax error AddToFunc CenterWindow + I ThisWindow Piperead echo Move \ $(( $[vp.width]/2-$[w.width]/2 ))p \ $(( $[vp.height]/2-$[w.height]/2 ))p sh complains about missing ( Actually i'm trying to calculate which