We are running ksh Version JM 93t+ 2010-06-21 plus the patch below:
--- src/cmd/ksh93/bltins/misc.c
+++ src/cmd/ksh93/bltins/misc.c 2011-02-22 13:03:35.783936889 +0000
@@ -273,7 +273,6 @@ int    b_dot_cmd(register int n,char *ar
        shp->st.self = &savst;
        shp->topscope = (Shscope_t*)shp->st.self;
        prevscope->save_tree = shp->var_tree;
-       shp->st.cmdname = argv[0];
        if(np)
                shp->st.filename =
np->nvalue.rp->fname;
        nv_putval(SH_PATHNAMENOD, shp->st.filename ,NV_NOFREE);

# locale
LANG=C
LC_COLLATE="C"
LC_CTYPE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=


This is on AIX 6.1
(16:36:33) c89f8v08:/ # uname -a
AIX c89f8v08 1 6 00CD05FF4C00


Thanks,
Tru.



________________________________
 From: David Korn <[email protected]>
To: [email protected]; [email protected] 
Sent: Friday, February 24, 2012 3:21 PM
Subject: Re: [ast-developers] Re: Inconsistent return code from subshell
 
cc: [email protected] 
Subject: Re: [ast-developers] Re: Inconsistent return code from subshell
--------

> If I remove the redirection, it works as expected.
> 
> (10:19:35) c89f8v08:/ # out=$(ls -l /tmp/junk 2>/dev/null || print -u2 
> /tmp/junk
>  NOT FOUND ; echo done) ; echo $out
> done
> 
> (10:19:50) c89f8v08:/ # out=$(ls -l /tmp/junk || print -u2 /tmp/junk NOT 
> FOUND ;
>  echo done) ; echo $out
> /tmp/junk not found
> /tmp/junk NOT FOUND
> done
> 

I have not been able to reproduce this.  What system and what version of ksh93
are you running?

Can anyone else reproduce this?

David Korn
[email protected]
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to