Hi,
we found a bug in ksh. When script is executed from removed directory,
ksh (2012-08-01) crashes in sh/subshell.c:sh_subshell():541:
541: if(xp->pwdfd>0 && strcmp(xp->pwd,shp->pwd)==0)
both xp->pwd and shp->pwd are NULL and strcmp(NULL,NULL) crashes
reproducer:
=============================================
#!/bin/bash
mkdir testdir
cd testdir
ksh -c 'sleep 1; FOO=$(/bin/echo $(/bin/echo "bar") )' &
cd ..
rmdir testdir
wait
=============================================
This is regression between 2012-06-28 (last working) and 2012-07-27
(first broken).
Let me know if you need more information.
Michal
_______________________________________________
ast-developers mailing list
ast-developers@research.att.com
https://mailman.research.att.com/mailman/listinfo/ast-developers