Discussion:
[ast-developers] cd -@ no longer works with subshells+cd -f ...
Roland Mainz
2013-09-27 03:23:09 UTC
Permalink
Hi!

----

cd -@ no longer seems to work on Solaris 11/B145/AMD64/64bit when
subshells+cd -f are involved. It seems the issue may crawled-in the
time when we switched over to /dev/file at xattr/ ... ;-(

Example:
-- snip --
$ cat test79.sh
redirect {basefd}<"."
touch x5
cd -@ x5
redirect {n}<"."
cd -f ${basefd}
(cd -f "$n" ; print "hello5" >"myxattr")
(cd -@ x5 ; cat "myxattr" )
rm x5
$ ksh -x test79.sh
+ command exec
+ {basefd}< .
+ touch x5
+ cd -@ x5
+ command exec
+ {n}< .
+ cd -f 12
+ cd -f 10
+ print hello5
+ 1> myxattr
+ cd -@ x5
test79.sh[7]: cd: /dev/file/xattr at x5//@//: [No such file or directory]
+ cat myxattr
hello5
+ rm x5
rm: x5: not found
-- snip --

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Loading...