Re: [ast-developers] Fwd: Bug#691200: ksh: cd .. doesn't work in many cases

2012-10-23 Thread Lionel Cons
On 23 October 2012 15:20, Glenn Fowler wrote: > >>> Version: 93u+-1.1 > > not sure about this nomenclature > ast ksh reports a version matching "93[a-z][-+]? -MM-DD" These are Debian version numbers. Oliver Kiddle can explain how they translate into ast/ksh version numbers. Lionel _

Re: [ast-developers] ast-ksh 2012-10-12 alpha

2012-10-23 Thread Lionel Cons
On 13 October 2012 16:40, Glenn Fowler wrote: > ast-ksh 2012-10-12 alpha posted When will the next alpha be released? Lionel ___ ast-developers mailing list ast-developers@research.att.com https://mailman.research.att.com/mailman/listinfo/ast-developer

Re: [ast-developers] ast ksh 2012-10-04 alpha

2012-10-10 Thread Lionel Cons
On 9 October 2012 18:01, Glenn Fowler wrote: > > On Tue, 9 Oct 2012 17:46:21 +0200 =?KOI8-R?B?z8zYx8Egy9LZ1sHOz9fTy8HR?= wrote: >> Glenn, which hexadecimal code is ^M again, is it 0x0D? > >> cat Downloads/Mamfile | od -t x1 | fgrep -i 0d | wc -l >> 920 >> cat Downloads/Mamfile | od -t x1 | fgrep -

Re: [ast-developers] ast ksh 2012-10-04 alpha

2012-10-10 Thread Lionel Cons
On 6 October 2012 09:31, Glenn Fowler wrote: > > ast ksh 2012-10-04 alpha source packages have been posted to > www.research.att.com/sw/download/alpha/ > > this alpha includes { grep xargs iconv } as ksh static builtins > any b_*() function added to src/lib/libcmd will automatically be add

Re: [ast-developers] string <> comparison in [[ ]]

2012-10-03 Thread Lionel Cons
On 1 October 2012 18:36, Michal Hlavinka wrote: > Hi, > > one our user complains about string comparison result: > > var1="4000" > var2=" 500" > [[ $var2 > $var1 ]]; echo $? > 0 > [[ "$var2" > "$var1" ]]; echo $? > 0 > > > Based on ksh man page: > string1 < string2 > True, if string1 comes befor

Re: [ast-developers] ast-ksh 2012-09-27 alpha

2012-10-03 Thread Lionel Cons
On 28 September 2012 07:44, Glenn Fowler wrote: > > { INIT ast-ksh } 2012-09-27 alphas posted to > www.research.att.com/sw/download/alpha/ > > the next alpha will migrate current -lcmdtst ksh builtins to -lcmd, > will static bind all -lcmd builtins to the /opt/ast/bin virtual dir, > and wi

Re: [ast-developers] libcmd builtin wish: iconv

2012-09-26 Thread Lionel Cons
On 26 September 2012 10:57, Cedric Blancher wrote: > On 26 September 2012 06:09, Lionel Cons wrote: >> On 27 August 2012 22:22, Glenn Fowler wrote: >>> >>> I took a quick look and iconv(1) does look like a good candidate for -lcmd >>> it would just need an sh

Re: [ast-developers] libcmd builtin wish: iconv

2012-09-25 Thread Lionel Cons
On 27 August 2012 22:22, Glenn Fowler wrote: > > I took a quick look and iconv(1) does look like a good candidate for -lcmd > it would just need an sh signal check in the inner file loop You have to remove the call to setlocale() too. Lionel ___ ast-de

Re: [ast-developers] libcmd builtin wish: iconv

2012-09-25 Thread Lionel Cons
e lack of iconv this night on almost 70 of our machines and DO have a grudge against that thing. > > On Mon, 20 Aug 2012 00:47:03 +0200 Lionel Cons wrote: >> Glenn, it may be useful to add iconv to libcmd. We figured (after >> comments in the main XML development list [xml-...@lis

[ast-developers] Backport request: ~{fd} syntax to shorten paths via /proc or /dev/fd

2012-09-23 Thread Lionel Cons
I have a backport request for ksh93u+: Please backport the ~{fd} syntax to shorten paths via /proc/$$/fd/${fd} or /dev/fd/${fd}. We found that this gives a significant performance benefit when scripts have to process long path names. Lionel ___ ast-devel

[ast-developers] Big data: More than 2^32 line numbers

2012-09-23 Thread Lionel Cons
We've noticed a bug in ksh93 this weekend related to reporting of line numbers in errors and $LINONO: Some of our big data production systems generate scripts to handle a specific task. Because of the size and amount of datasets at CERN, it is possible to get well beyond 2^32 lines in a generated s

Re: [ast-developers] [patch] New patch to make $ cd /dev/fd/$fd/$path # work in a chroot and to add $ cd -f $fd $path # ... / was: Re: [patch] Patch to make $ cd /dev/fd/$fd/$path # work in a chroot a

2012-09-17 Thread Lionel Cons
On 17 September 2012 17:00, Roland Mainz wrote: > On Mon, Sep 17, 2012 at 3:17 PM, Lionel Cons > wrote: >> On 14 September 2012 06:01, Roland Mainz wrote: >>> Attached (as "astksh_chroot_cd_devfd_cd_f_20120911_001.diff.txt") is a >>> patch which fixes t

Re: [ast-developers] [patch] Patch to make $ cd /dev/fd/$fd/$path # work in a chroot and to add $ cd -f $fd $path # ...

2012-09-17 Thread Lionel Cons
On 14 September 2012 06:01, Roland Mainz wrote: > Hi! > > > > Attached (as "astksh_chroot_cd_devfd_cd_f_20120911_001.diff.txt") is a > patch which fixes two issues with "cd": > 1. $ cd /dev/fd/$fd # doesn't work in chroot'ed environments when > /dev/fd is not mounted (thanks to CERN staff for

Re: [ast-developers] [patch] Patch to make $ cd /dev/fd/$fd/$path # work in a chroot and to add $ cd -f $fd $path # ...

2012-09-14 Thread Lionel Cons
On 14 September 2012 06:01, Roland Mainz wrote: > Hi! > > > > Attached (as "astksh_chroot_cd_devfd_cd_f_20120911_001.diff.txt") is a > patch which fixes two issues with "cd": > 1. $ cd /dev/fd/$fd # doesn't work in chroot'ed environments when > /dev/fd is not mounted (thanks to CERN staff for

Re: [ast-developers] Next alpha/beta and roadmap?

2012-09-13 Thread Lionel Cons
On 13 September 2012 19:17, Glenn Fowler wrote: > > On Thu, 13 Sep 2012 18:21:19 +0200 Lionel Cons wrote: >> On 13 September 2012 17:16, Glenn Fowler wrote: >> > >> > On Tue, 11 Sep 2012 17:31:07 +0200 Cedric Blancher wrote: >> >> Glenn, when is the ne

Re: [ast-developers] Next alpha/beta and roadmap?

2012-09-13 Thread Lionel Cons
On 13 September 2012 17:16, Glenn Fowler wrote: > > On Tue, 11 Sep 2012 17:31:07 +0200 Cedric Blancher wrote: >> Glenn, when is the next alpha/beta due? Is there a roadmap what you >> are planning long-term for AST? > > here is a short overview of long-term ast plans > its all subject to change de

Re: [ast-developers] What replaced /dev/audio in newer Linux?

2012-09-11 Thread Lionel Cons
On 12 September 2012 06:23, ольга крыжановская wrote: > Does any one know where /dev/audio went in newer Linux? The /dev/audio > was used to pass ulaw data, but it is gone now. Is there a > replacement? No, someone thought it's funny to make users look for it. I'd love to get his name and address

Re: [ast-developers] New syntax for paths relative to directory fds (~{dirfd}/foo/bar.txt) ...

2012-09-06 Thread Lionel Cons
2012/9/6 Roland Mainz : > 2012/9/6 Joshuah Hurst : >> 2012/9/5 Roland Mainz : >>> 2012/9/5 Roland Mainz : 2012/9/5 David Korn : [CC:ing ast-developers@research.att.com so that the patch gets archived] > cc: g...@research.att.com olga.kryzhanov...@gmail.com > Subject: Re: New synta

Re: [ast-developers] New syntax for paths relative to directory fds (~{dirfd}/foo/bar.txt) ...

2012-09-06 Thread Lionel Cons
2012/9/6 Joshuah Hurst : > 2012/9/5 Roland Mainz : >> 2012/9/5 Roland Mainz : >>> 2012/9/5 David Korn : >>> [CC:ing ast-developers@research.att.com so that the patch gets archived] cc: g...@research.att.com olga.kryzhanov...@gmail.com Subject: Re: New syntax for paths relative to director

Re: [ast-developers] RFE: longer temp names in mktemp builtin and libast API

2012-09-06 Thread Lionel Cons
On 5 September 2012 19:41, Glenn Fowler wrote: > > On Wed, 5 Sep 2012 18:48:00 +0200 Lionel Cons wrote: >> On 5 September 2012 17:00, Glenn Fowler wrote: >> > >> > (1) are we talking about libast mktemp(3) or ksh mktemp(1) > >> AST mktemp as plain co

Re: [ast-developers] RFE: longer temp names in mktemp builtin and libast API

2012-09-06 Thread Lionel Cons
On 5 September 2012 18:48, Lionel Cons wrote: > On 5 September 2012 17:00, Glenn Fowler wrote: >> >> (1) are we talking about libast mktemp(3) or ksh mktemp(1) > > AST mktemp as plain command. We replaced the machine's native > /usr/bin/mktemp with AST mktemp since

Re: [ast-developers] New syntax for paths relative to directory fds (~{dirfd}/foo/bar.txt) ...

2012-09-05 Thread Lionel Cons
2012/9/5 Roland Mainz : > Hi! > > > > [Mostly Olga's idea (who is away and can't post anyway here since the > AT&T spam filters have a grudge against her native name... ;-( )] > > Woud the following syntax for paths relative to a directory fd "dirfd" > be possible without violating POSIX (righ

Re: [ast-developers] RFE: longer temp names in mktemp builtin and libast API

2012-09-05 Thread Lionel Cons
On 5 September 2012 17:00, Glenn Fowler wrote: > > (1) are we talking about libast mktemp(3) or ksh mktemp(1) AST mktemp as plain command. We replaced the machine's native /usr/bin/mktemp with AST mktemp since GNU coreutils and (especially!) the Solaris /usr/bin/mktemp are prone to even more coll

Re: [ast-developers] Per-thread cwd or no per-therad cwd ?

2012-09-05 Thread Lionel Cons
On 5 September 2012 01:28, Irek Szczesniak wrote: > On Tue, Sep 4, 2012 at 11:57 PM, Roland Mainz > wrote: >> Hi! >> >> >> >> [Just some follow-up to the recent discussion] >> Question is: Why do we want a per-thread cwd ? Is it useful ? >> >> AFAIK the arguments are: >> * Pro: >> - Moving

[ast-developers] RFE: longer temp names in mktemp builtin and libast API

2012-09-05 Thread Lionel Cons
Glenn, by chance or bad luck one of our production runs trashed older data (which resulted in severe dataloss problems. We DO have backups, but it may take months to recover from this). After a lengthy search we traced the problem down to the issue that AST mktemp generated the same temporary file

Re: Re: [ast-developers] Fwd: Per thread open(), stat(), rename() and so on, and *at() API

2012-08-29 Thread Lionel Cons
On 29 August 2012 17:02, David Korn wrote: > Subject: Re: Re: [ast-developers] Fwd: Per thread open(), stat(), rename() > and so on, and *at() API > > > >> Well, if you use {a} then please remove the mamfile code which >> generates libshell.so - libshell.a is sufficient to build ksh. So

Re: [ast-developers] Fwd: Per thread open(), stat(), rename() and so on, and *at() API

2012-08-29 Thread Lionel Cons
On 29 August 2012 15:41, Glenn Fowler wrote: > > On Wed, 29 Aug 2012 15:23:25 +0200 Lionel Cons wrote: >> On 29 August 2012 15:10, Glenn Fowler wrote: >> > >> > we're going to take some research leeway and investigate the implications >> > of {a}

Re: [ast-developers] Fwd: Per thread open(), stat(), rename() and so on, and *at() API

2012-08-29 Thread Lionel Cons
On 29 August 2012 15:28, Glenn Fowler wrote: > > On Wed, 29 Aug 2012 15:14:47 +0200 Cedric Blancher wrote: >> On 29 August 2012 15:10, Glenn Fowler wrote: >> > >> > we're going to take some research leeway and investigate the implications >> > of {a} >> > we're not strangers to doing stuff like

Re: [ast-developers] libcmd builtin wish: iconv

2012-08-29 Thread Lionel Cons
On Wed, 29 Aug 2012 12:03:15 +0200 Lionel Cons wrote: >> On 27 August 2012 22:22, Glenn Fowler wrote: >> > >> > I took a quick look and iconv(1) does look like a good candidate for -lcmd >> > it would just need an sh signal check in the inner file loop > >&g

Re: [ast-developers] Fwd: Per thread open(), stat(), rename() and so on, and *at() API

2012-08-29 Thread Lionel Cons
On 29 August 2012 15:10, Glenn Fowler wrote: > > we're going to take some research leeway and investigate the implications of > {a} > we're not strangers to doing stuff like that (3d(1)) > and we're not strangers to having research prove us wrong Well, if you use {a} then please remove the mamfi

Re: [ast-developers] Fwd: Per thread open(), stat(), rename() and so on, and *at() API

2012-08-29 Thread Lionel Cons
On 29 August 2012 14:35, Cedric Blancher wrote: > On 29 August 2012 10:01, Roland Mainz wrote: >> [Forwarding email since somehow the ast-developers@ list has issues >> with postings from Olga's address... ;-( ] >> -- Forwarded message -- >> From: ольга крыжановская >> Date: Wed,

[ast-developers] Anyone porting ksh93 poll(1) to bash4?

2012-08-29 Thread Lionel Cons
Is anyone working on porting ksh93v- poll(1) to bash4? Lionel ___ ast-developers mailing list ast-developers@research.att.com https://mailman.research.att.com/mailman/listinfo/ast-developers

Re: [ast-developers] libcmd builtin wish: iconv

2012-08-29 Thread Lionel Cons
with yet another run-in with AIX and Solaris grep. > > On Mon, 20 Aug 2012 00:47:03 +0200 Lionel Cons wrote: >> Glenn, it may be useful to add iconv to libcmd. We figured (after >> comments in the main XML development list [xml-...@lists.xml.org]) it >> might be useful for XM

Re: [ast-developers] fstatat(dirfd, ".",&sb, ...) --> fstat(dirfd)?

2012-08-29 Thread Lionel Cons
On 29 August 2012 06:07, ольга крыжановская wrote: > Does any one see a reason why fstatat(dirfd, ".",&sb, ...) can not be > replaced with fstat(dirfd, &sb)? At least on Linux both calls are equal. Be careful with fstatat() and make the flags field 0, the flag value AT_SYMLINK_NOFOLLOW will make

Re: [ast-developers] Fwd: Per thread open(), stat(), rename() and so on, and *at() API

2012-08-29 Thread Lionel Cons
On 29 August 2012 10:01, Roland Mainz wrote: > [Forwarding email since somehow the ast-developers@ list has issues > with postings from Olga's address... ;-( ] > -- Forwarded message -- > From: ольга крыжановская > Date: Wed, Aug 29, 2012 at 7:36 AM > Subject: Fwd: Per thread open

Re: [ast-developers] ksh93v- 2012-08-10 alpha source

2012-08-20 Thread Lionel Cons
On 13 August 2012 15:18, Glenn Fowler wrote: > > On Mon, 13 Aug 2012 12:46:54 +0200 Lionel Cons wrote: >> On 13 August 2012 08:17, Glenn Fowler wrote: >> > >> > ksh93v- 2012-08-10 alpha source has been posted to >> > >> > www.research.a

Re: [ast-developers] Status Docbook/XML for AST

2012-08-20 Thread Lionel Cons
On 18 August 2012 00:55, ольга крыжановская wrote: > I looked at Roland's work on Docbook/XML. AFAIK it has reached > prototype stage, but there is an issue with the man pages: > If we maintain all man pages as Docbook, how do we get the nroff pages > for those /usr/bin/man implementations which d

Re: [ast-developers] poll(1) for ksh93v?

2012-08-20 Thread Lionel Cons
On 17 August 2012 16:35, ольга крыжановская wrote: > I will do. Roland is sick this week. > > Glenn, did you integrate the poll(1) builtin into your code already? > If not, I make an update which will fit smoothly onto ksh93v-. Olga? Roland? Lionel __

[ast-developers] libcmd builtin wish: iconv

2012-08-19 Thread Lionel Cons
Glenn, it may be useful to add iconv to libcmd. We figured (after comments in the main XML development list [xml-...@lists.xml.org]) it might be useful for XML processing in case we encounter UCS2 or UCS4 encoded XML documents (for example originating from Windows) but the platform does not have ic

[ast-developers] poll(1) for ksh93v?

2012-08-16 Thread Lionel Cons
Roland, Olga, do you have time to update your poll(1) patch for ksh93v, please? The patches for ksh93u+ no longer work. Lionel ___ ast-developers mailing list ast-developers@research.att.com https://mailman.research.att.com/mailman/listinfo/ast-developer

Re: [ast-developers] Re: Putting openat() emulation into libast?

2012-08-16 Thread Lionel Cons
On 16 August 2012 16:16, Glenn Fowler wrote: > > any locking/critical regions will have to use aso > because libast itself does not require -l*thread* What about pthread? Is there (on Linux/Unix) any other viable option today? Lionel ___ ast-developers

Re: [ast-developers] ksh93v- 2012-08-10 alpha source

2012-08-16 Thread Lionel Cons
On 13 August 2012 15:18, Glenn Fowler wrote: > > On Mon, 13 Aug 2012 12:46:54 +0200 Lionel Cons wrote: >> On 13 August 2012 08:17, Glenn Fowler wrote: >> > >> > ksh93v- 2012-08-10 alpha source has been posted to >> > >> > www.research.a

Re: [ast-developers] ksh93v- 2012-08-10 alpha source

2012-08-13 Thread Lionel Cons
On 13 August 2012 08:17, Glenn Fowler wrote: > > ksh93v- 2012-08-10 alpha source has been posted to > > www.research.att.com/sw/download/alpha/ > > INIT.2012-08-10.tgz 382317 a247ee6b4e1f8aaaf199984be08238ea > ast-ksh.2012-08-10.tgz 2071285 73f4c9eacede7ffbc

[ast-developers] SHOPT_EXPERIMENTAL for ksh93u+?

2012-08-06 Thread Lionel Cons
On 6 August 2012 12:50, Roland Mainz wrote: > Hi! > > > > ${#.sh.match[0][@]} in ast-ksh.2012-07027 seems to count the wrong > number of array elements if ~(E) contains (pattern1)|(pattern2) when > either pattern1 XOR pattern2 match. > Example: > -- snip -- > $ ksh -c 's="a1a2a3" ; d="${s//~(

Re: [ast-developers] [ast-users] [ksh93] `>; ' never worked before 2011-02-08?

2012-08-01 Thread Lionel Cons
On 1 August 2012 08:05, Clark WANG wrote: > Again, my point is that the high priority is to make ksh93 stable. +1 Lets hope we can make ksh93u better than the t version was. Lionel ___ ast-developers mailing list ast-developers@research.att.com https:

[ast-developers] Re: 3rd version of poll(1) shell builtin (final API!) ...

2012-08-01 Thread Lionel Cons
On 1 August 2012 04:01, Roland Mainz wrote: > On Wed, Aug 1, 2012 at 3:49 AM, Roland Mainz wrote: >> Attached (as "astksh_builtin_poll20120728_001.diff.txt") is the >> _prototype_ patch for a poll(1) builtin and a demo application >> (attached as "shircbot.sh.txt") which shows it's usage. >> > [s

[ast-developers] Re: 3rd version of poll(1) shell builtin (final API!) ...

2012-08-01 Thread Lionel Cons
On 1 August 2012 03:49, Roland Mainz wrote: > Hi! > > > > Attached (as "astksh_builtin_poll20120728_001.diff.txt") is the > _prototype_ patch for a poll(1) builtin and a demo application > (attached as "shircbot.sh.txt") which shows it's usage. > > WARNING for existing users: There has been a

Re: [ast-developers] [patch][review] handle EINTR for (terminal) ioctl()

2012-07-30 Thread Lionel Cons
On 30 July 2012 13:20, Lionel Cons wrote: > On 30 July 2012 10:18, ольга крыжановская wrote: >> David, Glenn, I have attached a stability patch (it is an old patch >> from Roland, I finished, polished and tested it) for ksh93u+ (yes, for >> the stable branch, since the unde

Re: [ast-developers] Some notes about thread support in ksh93...

2012-07-30 Thread Lionel Cons
On 30 July 2012 07:32, Clark WANG wrote: > On Mon, Jul 30, 2012 at 11:49 AM, Irek Szczesniak > wrote: >> >> On Mon, Jul 30, 2012 at 4:15 AM, Clark WANG wrote: >> > >> > If I need to write multi-thread programs I'll choose other languages >> > like C, >> > Perl or Python, which are mature and sta

Re: [ast-developers] Removing pre-ANSI-C (< C89) support?

2012-07-30 Thread Lionel Cons
On 29 July 2012 21:55, ольга крыжановская wrote: > Glenn, does AST still support any platforms which do not have C89 > support? AST has *lots* of code around for K&R support, and I do not > know whether this is appropriate in times where C2011 becomes common > on modern systems. FYI perl develope

Re: [ast-developers] [patch][review] handle EINTR for (terminal) ioctl()

2012-07-30 Thread Lionel Cons
On 30 July 2012 10:18, ольга крыжановская wrote: > David, Glenn, I have attached a stability patch (it is an old patch > from Roland, I finished, polished and tested it) for ksh93u+ (yes, for > the stable branch, since the underlying issue is nasty and impossible > to recover from unless with a re

Re: [ast-developers] 2nd version of prototype poll(1) builtin...

2012-07-27 Thread Lionel Cons
On 27 July 2012 07:13, Roland Mainz wrote: > Hi! > > > > Attached (as "astksh_builtin_poll20120725_001.diff.txt") is the > _prototype_ patch for a poll(1) builtin and a demo application > (attached as "shircbot.sh.txt") which shows it's usage. > > Basic usage example: > -- snip -- > $ ksh -c

Re: [ast-developers] Some notes about thread support in ksh93...

2012-07-27 Thread Lionel Cons
On 27 July 2012 14:44, FELLIN, JEFFREY K (JEFF) wrote: > Roland, > Please forgive my ignorance, but I don't understand what having a threaded > ksh does for improving performance nor what problem a threaded ksh is solving. > > Can you enlighten me as to the benefits of a threaded ksh? The benefi

Re: Preventing linker from removing ksh93 builtins which are not enabled by default ... / was: Re: [ast-developers] Prototype poll(1) builtin...

2012-07-24 Thread Lionel Cons
On 24 July 2012 21:11, David Korn wrote: > cc: ast-developers@research.att.com > Subject: Re: Preventing linker from removing ksh93 builtins which are not > enabled by default ... / was: Re: [ast-developers] Prototype poll(1) > builtin... > > >> On Fri, Jul 20, 2012 at 4:31 PM, Irek

Re: [ast-developers] Fwd: sfpoll(): poll for read or write readyness?

2012-07-16 Thread Lionel Cons
On 16 July 2012 10:11, Cedric Blancher wrote: > On 16 July 2012 07:04, Lionel Cons wrote: >> On 15 July 2012 23:03, Josh Hurst wrote: >>> Again.. >>> -- Forwarded message -- >>> From: Josh Hurst >>> Date: Sun, Jul 15, 2012 at 7:

Re: [ast-developers] Fwd: sfpoll(): poll for read or write readyness?

2012-07-15 Thread Lionel Cons
On 15 July 2012 23:03, Josh Hurst wrote: > Again.. > -- Forwarded message -- > From: Josh Hurst > Date: Sun, Jul 15, 2012 at 7:39 AM > Subject: sfpoll(): poll for read or write readyness? > To: ast-developers@research.att.com > > > If sfpoll() calls a discipline with SF_DPOLL, how

Re: [ast-developers] Re: XPG7 problem with restoring cwd after a subshell exits...

2012-07-15 Thread Lionel Cons
On 11 July 2012 05:28, Roland Mainz wrote: > On Wed, Jul 11, 2012 at 4:34 AM, Roland Mainz > wrote: >> On Mon, Jul 9, 2012 at 6:16 PM, Roland Mainz >> wrote: >>> On Mon, Jul 9, 2012 at 12:59 PM, Lionel Cons >>> wrote: >>> [snip] >>>&g

Re: Re: [ast-developers] Re: Get ~(E) fixed or remove it

2012-07-11 Thread Lionel Cons
On 11 July 2012 15:16, David Korn wrote: > cc: ast-developers@research.att.com > Subject: Re: Re: [ast-developers] Re: Get ~(E) fixed or remove it > > >> Lets say, I'm not happy with the number of issues with ~() either >> > but please do not do such drastic steps. >> > I think the p

Re: [ast-developers] Re: XPG7 problem with restoring cwd after a subshell exits...

2012-07-11 Thread Lionel Cons
On 11 July 2012 13:33, Roland Mainz wrote: > On Wed, Jul 11, 2012 at 10:21 AM, Lionel Cons > wrote: >> On 11 July 2012 05:28, Roland Mainz wrote: >>> On Wed, Jul 11, 2012 at 4:34 AM, Roland Mainz >>> wrote: >>>> On Mon, Jul 9, 2012 at 6:16 PM, Rola

[ast-developers] Re: Get ~(E) fixed or remove it

2012-07-11 Thread Lionel Cons
On 1 July 2012 22:56, Lionel Cons wrote: > On 27 June 2012 19:24, Glenn Fowler wrote: >> >> On Wed, 27 Jun 2012 18:15:06 +0200 Roland Mainz wrote: >>> On Wed, Jun 27, 2012 at 6:04 PM, Glenn Fowler wrote: >>> > On Wed, 27 Jun 2012 17:43:06 +0200 Roland Mainz

Re: [ast-developers] Re: XPG7 problem with restoring cwd after a subshell exits...

2012-07-11 Thread Lionel Cons
On 11 July 2012 05:28, Roland Mainz wrote: > On Wed, Jul 11, 2012 at 4:34 AM, Roland Mainz > wrote: >> On Mon, Jul 9, 2012 at 6:16 PM, Roland Mainz >> wrote: >>> On Mon, Jul 9, 2012 at 12:59 PM, Lionel Cons >>> wrote: >>> [snip] >>>&g

Re: [ast-developers] Re: XPG7 problem with restoring cwd after a subshell exits...

2012-07-09 Thread Lionel Cons
On 9 July 2012 10:33, Roland Mainz wrote: > On Mon, Jul 9, 2012 at 9:48 AM, Roland Mainz wrote: >> Hi! >> >> >> >> Someone from Sun^H^H^HOracle came up with the following issue when >> prelimitary for XPG7 conformance was tested: >> The following test script... >> -- snip -- >> mkdir t1 >> >

Re: [ast-developers] Re: No O_SEARCH in Linux?

2012-07-06 Thread Lionel Cons
On 6 July 2012 16:13, Dr. Werner Fink wrote: > On Fri, Jul 06, 2012 at 03:06:47PM +0200, Roland Mainz wrote: >> On Fri, Jul 6, 2012 at 2:30 PM, Dr. Werner Fink wrote: >> > On Fri, Jul 06, 2012 at 03:13:18AM +0200, ольга крыжановская wrote: >> >> Does any one of the Linux gurus here know why Linux

[ast-developers] Get ~(E) fixed or remove it

2012-07-01 Thread Lionel Cons
On 27 June 2012 19:24, Glenn Fowler wrote: > > On Wed, 27 Jun 2012 18:15:06 +0200 Roland Mainz wrote: >> On Wed, Jun 27, 2012 at 6:04 PM, Glenn Fowler wrote: >> > On Wed, 27 Jun 2012 17:43:06 +0200 Roland Mainz wrote: >> >> How can I quote '-' in a ~(Ex)-style pattern [...] that it exactly >> >>

[ast-developers] Re: Data corruption in astksh20120628 (was: Re: WITHDRAW release? Re: [ast-users] AT&T Software Technology ast software download update)

2012-06-29 Thread Lionel Cons
On 29 June 2012 16:41, Irek Szczesniak wrote: > On Fri, Jun 29, 2012 at 4:16 PM, Irek Szczesniak > wrote: >> On Fri, Jun 29, 2012 at 2:25 PM, Lionel Cons >> wrote: >>> On 29 June 2012 07:29, Glenn Fowler wrote: >>>> >>>> the AT&T Software

Re: [ast-developers] str="$( < bigfile )" with "bigfile" == 32MB triggers excessive memory usage...

2012-06-28 Thread Lionel Cons
On 28 June 2012 17:33, Glenn Fowler wrote: > > On Thu, 28 Jun 2012 13:43:52 +0200 Irek Szczesniak wrote: >> On Thu, Jun 28, 2012 at 9:28 AM, Glenn Fowler wrote: >> > >> > On Wed, 27 Jun 2012 12:55:56 +0200 Cedric Blancher wrote: >> >> On 21 June 2012 08:18, Roland Mainz wrote: >> >> > Hi! >> >>

[ast-developers] Re: libast, please don't use sbrk()!

2012-06-28 Thread Lionel Cons
On 28 June 2012 18:20, Glenn Fowler wrote: > > On Thu, 28 Jun 2012 16:30:37 +0200 Lionel Cons wrote: >> On 28 June 2012 09:28, Glenn Fowler wrote: >> > >> > On Wed, 27 Jun 2012 12:55:56 +0200 Cedric Blancher wrote: >> >> On 21 June 2

[ast-developers] libast, please don't use sbrk()!

2012-06-28 Thread Lionel Cons
On 28 June 2012 09:28, Glenn Fowler wrote: > > On Wed, 27 Jun 2012 12:55:56 +0200 Cedric Blancher wrote: >> On 21 June 2012 08:18, Roland Mainz wrote: >> > Hi! >> > >> > >> > >> > Attached (as "bigfilecommandsubstitution001.sh.txt") is a short demo >> > which shows a problem in ast-ksh.2012-

Re: [ast-developers] ast-ksh.2012-06-20 crashes when $(( ' is entered in "gmacs" mode

2012-06-25 Thread Lionel Cons
On 24 June 2012 10:39, Roland Mainz wrote: > Hi! > > > > The following causes a code dump in an interactive shell session > (gmacs editor mode) with ast-ksh.2012-06-20 on Solaris 11/AMD64/64bit > in the en_US.UTF-8 locale. > > Steps to reproduce: > 1. I type the following string: > -- snip --

Re: [ast-developers] Re: Advanched regex (to parse XML fragments) not working...

2012-06-23 Thread Lionel Cons
On 23 June 2012 06:22, Roland Mainz wrote: > On Sat, Jun 23, 2012 at 5:55 AM, Glenn Fowler wrote: >> On Sat, 23 Jun 2012 03:40:15 +0200 Roland Mainz wrote: >>> On Sat, Jun 23, 2012 at 2:34 AM, Roland Mainz >>> wrote: >>> > Here's another issue with regex. We wrote the following script to >>> >

Re: [ast-developers] More fun with regex in ksh ... / was: Re: Advanched regex (to parse XML fragments) not working...

2012-06-23 Thread Lionel Cons
On 23 June 2012 06:40, Roland Mainz wrote: > On Sat, Jun 23, 2012 at 6:22 AM, Roland Mainz > wrote: >> On Sat, Jun 23, 2012 at 5:55 AM, Glenn Fowler wrote: >>> On Sat, 23 Jun 2012 03:40:15 +0200 Roland Mainz wrote: On Sat, Jun 23, 2012 at 2:34 AM, Roland Mainz wrote: > Here's a

Re: [ast-developers] read: -N: limit exceeded

2012-06-23 Thread Lionel Cons
On 22 June 2012 21:52, David Korn wrote: > Subject: Re: [ast-developers] read: -N: limit exceeded > > >> Why is this limit? And can the limit be increased to at least 2**32 on >> 64bit platforms? >> >> Lionel >> > > It was that way to reserve compatibility with the sh_readline() > interac

[ast-developers] read: -N: limit exceeded

2012-06-22 Thread Lionel Cons
We've encountered a rather unfortunate limit with read -N: It seems it can't be used to load larger blocks even on 64bit platforms. ~/bin/ksh -c 'read -N$((2**28)) s < higgs_boson_results14_18_39_run20120204_13_filter17_19_03.llp' /home/lcons/bin/ksh: read: -N: limit exceeded I've look at the cod

[ast-developers] Re: File completion broken in emacs mode?

2012-06-19 Thread Lionel Cons
On 19 June 2012 20:27, Lionel Cons wrote: > Is file completion in emacs mode known to be broken? If I have files > foo123, foo124, foo125 and type foo followed by the TAB key I get a > numbered choice. However typing a number to pick a choice no longer > works. I forgot, this is ast-

[ast-developers] File completion broken in emacs mode?

2012-06-19 Thread Lionel Cons
Is file completion in emacs mode known to be broken? If I have files foo123, foo124, foo125 and type foo followed by the TAB key I get a numbered choice. However typing a number to pick a choice no longer works. Lionel ___ ast-developers mailing list ast

Re: Re: Re: [ast-developers] RFE: Extend ksh93 printf %q to accept modifiers

2012-06-08 Thread Lionel Cons
On 8 June 2012 16:38, Clark WANG wrote: > On Fri, Jun 8, 2012 at 10:06 PM, Dan Shelton > wrote: >> On 30 May 2012 01:31, David Korn wrote: >>> cc:  ast-developers@research.att.com  iszczesn...@gmail.com   >>> k...@research.att.com >>> Subject: Re: Re: Re: [ast-developers] RFE: Extend ksh93 print

Re: [ast-developers] Re: grep&xargs ready for libcmd?

2012-06-08 Thread Lionel Cons
On 8 June 2012 16:55, Glenn Fowler wrote: > > most of the standalone commands in >        src/cmd/builtin >        src/cmd/re > and some in >        src/cmd/std > are builtin-izable > > after umpteen years of dealing with combining complex hunks of code > and subsequent portability issues >      

Re: [ast-developers] grep&xargs ready for libcmd?

2012-06-07 Thread Lionel Cons
On 7 June 2012 08:54, Roland Mainz wrote: > After all this testing... erm... I don't know what to test anymore. > We've done all we can do on our side (except writing some tests for > job control usage) and IMO it's time to move grep.c, xargs.c, tr.c and > od.c over to libcmd (pty.c should be incl

Re: [ast-developers] Re: Fwd: [perl #112790] Regexp engine cannot match >2GB strings

2012-05-31 Thread Lionel Cons
On 31 May 2012 21:17, Glenn Fowler wrote: > > regoff_t : int => ssize_t will be in the next release > adding the change with forwards/backwards source/binary compatibility took a > little more time > it also affected the older but still used strgrpmatch() prototype What is strgrpmatch() ? Lione

Re: [ast-developers] Re: pty utility to send ctrl-c as terminal?

2012-05-31 Thread Lionel Cons
On 31 May 2012 16:41, Glenn Fowler wrote: > > sorry for the delay on this > > look at src/cmd/ksh93/tests/pty.sh > the test with this label >        L POSIX sh 099(C) > sends ^C on this line >        c echo bad\cC pty is very interesting. Does pty support some kind of if/else construct to react

Re: [ast-developers] tar.sh, filenames or option arguments with spaces?

2012-05-25 Thread Lionel Cons
On 25 May 2012 21:19, Glenn Fowler wrote: > > not yet > l18n is one of the items lurking in the todo list > there are some curfty message catalog generation scripts that need to be > dusted off and re-tested > including the parts that reap l18n strings from scripts You can reap the string using

Re: [ast-developers] tar.sh, filenames or option arguments with spaces?

2012-05-25 Thread Lionel Cons
On 24 May 2012 22:40, Glenn Fowler wrote: > > this is fixed in the next release > thanks Thank you. Did you merge Roland Mainz's localisation patch, too? Lionel ___ ast-developers mailing list ast-developers@research.att.com https://mailman.research.at

Re: [ast-developers] What is AST? (Re: [ast-users] IRC channel for ast users, developers to hang out?)

2012-05-16 Thread Lionel Cons
On 16 May 2012 03:51, Clark WANG wrote: > On Tue, May 15, 2012 at 6:44 PM, Cedric Blancher > wrote: >> >> On 14 May 2012 10:25, clark wang wrote: >> > Anywhere I can learn more about AST? The AST overview and FAQ links >> > under >> > http://www2.research.att.com/sw/download/ are broken. For now

[ast-developers] tar.sh, filenames or option arguments with spaces?

2012-05-13 Thread Lionel Cons
Glenn, does tar.sh support filenames, option arguments or patterns with spaces? I've doubts; looking at the code, for example this line ($owner is a bad example option but a simple example to explain the trouble): options+=" --owner $owner" Isn't it better to declare options as an

Re: [ast-developers] Re: [ast-users] Feature request: AST grep as shell built in

2012-05-11 Thread Lionel Cons
On 11 May 2012 05:54, Cedric Blancher wrote: > On 13 April 2012 20:53, Cedric Blancher > wrote: >> 2012/3/31 ольга крыжановская : >>> Glenn, thank you, very much. >>> >>> An easier way to build the utilities is to unpack INIT, then ast-open, >>> then ast-cmdtst and build this in one step. >>> >>