[ast-users] Passing a file descriptor to a child process?

2013-07-29 Thread Tina Harriott
ksh93 uses O_CLOEXEC to avoid passing all its file descriptors to a child process. That is IMO a good thing (clean!). However, is there a way to pass a file descriptor to a child process? Tina -- Tina Harriott - Women in Mathematics Contact: tina.harriott.mathemat...@gmail.com

Re: [ast-users] _ doesn't refer to the correct object.

2013-07-29 Thread ольга крыжановская
Dan, what does super() do? Olga On Mon, Jul 29, 2013 at 9:37 AM, Dan Douglas orm...@gmail.com wrote: On Wednesday, July 24, 2013 12:40:01 PM David Korn wrote: cc: ast-users@lists.research.att.com orm...@gmail.com Subject: Re: Re: [ast-users] _ doesn't refer to the correct object.

Re: [ast-users] Nested namespaces for function/type libraries (e.g. com.att.research...) ... / was: Re: ksh -c 'namespace a.c.b { integer i=5 ; } ; ' = a.c.b: is not an identifier?

2013-07-29 Thread ольга крыжановская
Irek, I agree. The idea of nested name spaces, which work like java and are organised like DNS, would help with building a set of standard libraries for ksh93, which do not interfere with libraries from other projects. Olga On Mon, Jul 29, 2013 at 7:03 AM, Irek Szczesniak iszczesn...@gmail.com

[ast-users] var=value eval command sets var in current context but does not propagate it to command

2013-07-29 Thread PHILIPP, Axel, Dr.
In version Version AIJM 93v- 2013-07-24 (SuSE Linux Enterprise Server 11 SP2) var=value command eval command leaves the current environment unaffected, however var=value eval command simply sets var in current context but does not propagate it to command. (same as in Version AJM 93u+

[ast-users] Regression in ksh93v-: echo does no longer accept escape sequences

2013-07-29 Thread PHILIPP, Axel, Dr.
Version AJM 93u+ 2012-08-01 : cp003421 ksh -c 'echo \nTest\n' Test Version AIJM 93v- 2013-07-24 : cp003421 ksh93v -c 'echo \nTest\n' \nTest\n cp003421 cat /etc/SuSE-release SUSE Linux Enterprise Desktop 11 (x86_64) VERSION = 11 PATCHLEVEL = 2 Best Regards Axel Philipp -- MTU Aero Engines

Re: [ast-users] Regression in ksh93v-: echo does no longer accept escape sequences

2013-07-29 Thread ольга крыжановская
Axel, the work around is to use the POSIX printf utility/builtin, or it's print sibling (has more options, see print --man). printf(1) has standard behaviour on all platforms, and is tested on regular basis against the test suites of the standards. Olga On Mon, Jul 29, 2013 at 11:23 AM, ольга

Re: [ast-users] _ doesn't refer to the correct object.

2013-07-29 Thread Dan Douglas
On Monday, July 29, 2013 09:40:45 AM ольга крыжановская wrote: Dan, what does super() do? To oversimplifiy, it returns a reference to the superclass (a bit more complicated since python has multiple inheritence). In ksh we have a reference to the current object using _, but can't for example

[ast-users] No static functions in typeset -T xxx=(...) ... / was: Re: _ doesn't refer to the correct object.

2013-07-29 Thread Roland Mainz
On Mon, Jul 29, 2013 at 9:37 AM, Dan Douglas orm...@gmail.com wrote: On Wednesday, July 24, 2013 12:40:01 PM David Korn wrote: cc: ast-users@lists.research.att.com orm...@gmail.com [snip] # Static method typeset -fS totalpop function totalpop

Re: [ast-users] Regression in ksh93v-: echo does no longer accept escape sequences

2013-07-29 Thread PHILIPP, Axel, Dr.
Thanks, Olga. ksh93v -c 'echo -e \nTest\n' and ksh93v -c echo $'\nTest\n' also work, but we don't want to change all scripts. In this context I would like to understand, why ksh complains about unbalanced apostrophes in the following assignment: cp003421 aux='ab\'c d\'ef' cp003421 aux=ab\c

Re: [ast-users] Issue tracker for ksh?

2013-07-29 Thread Danny Weldon
Currently there is no bug tracking software being used. You can submit bugs to the ast-developers list or even here for that matter. Regards Danny On 29 July 2013 16:34, Tina Harriott tina.harriott.mathemat...@gmail.comwrote: On 25 July 2013 19:03, Tina Harriott

Re: [ast-users] Nested namespaces for function/type libraries (e.g. com.att.research...) ... / was: Re: ksh -c 'namespace a.c.b { integer i=5 ; } ; ' = a.c.b: is not an identifier?

2013-07-29 Thread David Korn
cc: iszczesn...@gmail.com Subject: Re: Re: [ast-users] Nested namespaces for function/type libraries (e.g. com.att.research...) ... / was: Re: ksh -c 'namespace a.c.b { integer i=5 ; } ; ' = a.c.b: is not an identifier? Interesting. namespace --man doesn't work. Is this because

Re: [ast-users] Passing a file descriptor to a child process?

2013-07-29 Thread David Korn
cc: tina.harriott.mathemat...@gmail.com Subject: Re: [ast-users] Passing a file descriptor to a child process? ksh93 uses O_CLOEXEC to avoid passing all its file descriptors to a child process. That is IMO a good thing (clean!). However, is there a way to pass a file descriptor to

Re: [ast-users] Nested namespaces for function/type libraries (e.g. com.att.research...) ... / was: Re: ksh -c 'namespace a.c.b { integer i=5 ; } ; ' = a.c.b: is not an identifier?

2013-07-29 Thread Tina Harriott
On 29 July 2013 03:17, Wendy Lin wendlin1...@gmail.com wrote: On 28 July 2013 06:17, Roland Mainz roland.ma...@nrubsig.org wrote: On Fri, Jul 12, 2013 at 4:42 AM, Wendy Lin wendlin1...@gmail.com wrote: On 12 July 2013 04:35, David Korn d...@research.att.com wrote: cc: wendlin1...@gmail.com

Re: [ast-users] Passing a file descriptor to a child process?

2013-07-29 Thread Janis Papanagnou
From: tina.harriott.mathemat...@gmail.com On 29 July 2013 14:40, David Korn d...@research.att.com wrote: cc: tina.harriott.mathemat...@gmail.com Subject: Re: [ast-users] Passing a file descriptor to a child process? ksh93 uses O_CLOEXEC to avoid passing all its file

Re: [ast-users] No static functions in typeset -T xxx=(...) ... / was: Re: _ doesn't refer to the correct object.

2013-07-29 Thread David Korn
(Minor ?!) nit: ksh93 doesn't support static functions in typeset -T ... AFAIK you want namespaces in this case... Bye, Roland What does a static function mean? Does it mean that each instance cannot redefine it? Does it mean that _.foo refers to the default value of foo

Re: [ast-users] Nested namespaces for function/type libraries (e.g. com.att.research...) ... / was: Re: ksh -c 'namespace a.c.b { integer i=5 ; } ; ' = a.c.b: is not an identifier?

2013-07-29 Thread Danny Weldon
On 29 July 2013 22:43, Tina Harriott tina.harriott.mathemat...@gmail.comwrote: On 29 July 2013 03:17, Wendy Lin wendlin1...@gmail.com wrote: On 28 July 2013 06:17, Roland Mainz roland.ma...@nrubsig.org wrote: On Fri, Jul 12, 2013 at 4:42 AM, Wendy Lin wendlin1...@gmail.com wrote: On 12

Re: [ast-users] Nested namespaces for function/type libraries (e.g. com.att.research...) ... / was: Re: ksh -c 'namespace a.c.b { integer i=5 ; } ; ' = a.c.b: is not an identifier?

2013-07-29 Thread Cedric Blancher
On 29 July 2013 14:43, Tina Harriott tina.harriott.mathemat...@gmail.com wrote: On 29 July 2013 03:17, Wendy Lin wendlin1...@gmail.com wrote: On 28 July 2013 06:17, Roland Mainz roland.ma...@nrubsig.org wrote: On Fri, Jul 12, 2013 at 4:42 AM, Wendy Lin wendlin1...@gmail.com wrote: On 12 July

Re: [ast-users] Nested namespaces for function/type libraries (e.g. com.att.research...) ... / was: Re: ksh -c 'namespace a.c.b { integer i=5 ; } ; ' = a.c.b: is not an identifier?

2013-07-29 Thread Cedric Blancher
On 30 July 2013 05:11, Danny Weldon danny.wel...@gmail.com wrote: But for stuff that is standard/builtin/core for ksh93, rather than: com.att.research.hello I think this would be much nicer: std.hello Sure, but first someone has to write something and put it into a place which is NOT