On Wed, Dec 4, 2013 at 4:21 AM, Glenn Fowler <glenn.s.fow...@gmail.com> wrote: > On Tue, Dec 3, 2013 at 7:02 PM, Roland Mainz <roland.ma...@nrubsig.org> > wrote: >> On Wed, Dec 4, 2013 at 12:45 AM, Roland Mainz <roland.ma...@nrubsig.org> >> wrote: >> > On Tue, Dec 3, 2013 at 8:13 PM, Glenn Fowler <glenn.s.fow...@gmail.com> >> > wrote: >> >> On Tue, Dec 3, 2013 at 12:02 PM, Simon Toedt <simon.to...@gmail.com> >> >> wrote: >> >>> On Tue, Dec 3, 2013 at 5:19 PM, Glenn Fowler >> >>> <glenn.s.fow...@gmail.com> >> >>> wrote: >> >>> > i don't really care for the utility of -p but it seems to be working >> >>> > as >> >>> > advertised >> >>> > try something like: mktemp myprefix "$PWD" [snip] >> > The output of that script looks like this with ast-ksh.2013-10-10 on >> > Solaris 11/B145/AMD64/64bit: >> > -- snip -- >> > $ env - ~/bin/ksh xxx.sh >> > + mktemp '--?-version' >> > version mktemp (AT&T Research) 2012-12-12 >> > + cd >> > xxx.sh[3]: cd: bad directory >> > + print /home/test001/tmp >> > /home/test001/tmp >> > + mktemp -u '' /home/test001/tmp >> > /home/test001/tmp/4sfuBB7Hll.llT >> > + touch x1 >> > + cd -@ x1 >> > + mktemp -u '' /dev/file/xattr@/home/test001/tmp/x1//@// >> > /tmp/hWzxGz8X0v.0vJ >> > + cd - >> > /home/test001/tmp >> > + rm x1 >> > -- snip -- >> >> Interesting... the (likely unrelated to the original issue) >> "xxx.sh[3]: cd: bad directory" only happens if I launch the shell with >> $ env - ~/bin/ksh ... # ... does anyone know why ? > > env - ... unsets HOME among others causing cd with no args to fail as it > should
Ok... > after the cd -@ x1 does this create a foo file? > : > /dev/file/xattr@/home/test001/tmp/x1//@//foo $ ~/bin/ksh -c 'rm x1 ; touch x1 ; cd -@ x1 ; ls -l ; true > /dev/file/xattr@/home/test001/tmp/x1//@//foo ; ls -l ; true' total 2 -r--r--r-- 1 root root 156 Dec 4 08:03 SUNWattr_ro -rw-r--r-- 1 root root 472 Dec 4 08:03 SUNWattr_rw total 3 -rw-r--r-- 1 test001 staff 0 Dec 4 08:03 foo -r--r--r-- 1 root root 156 Dec 4 08:03 SUNWattr_ro -rw-r--r-- 1 root root 472 Dec 4 08:03 SUNWattr_rw ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.ma...@nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;) _______________________________________________ ast-developers mailing list ast-developers@lists.research.att.com http://lists.research.att.com/mailman/listinfo/ast-developers