2013/5/13 David Korn <[email protected]>: > Subject: Re: Re: [ast-developers] Directory descriptor relative paths > -------- > >> Using /dev/fd is doomed anyway because ksh93 now uses O_CLOEXEC on all >> file descriptors so child processes no longer inherit the fds/. >> Either use /proc/$$/fd/$dir or ~{d}/ which does the same. >> >> Irek > > > File descriptor not opened with exec are not O_CLOEXEC, for > example > { > .... /dev/fd/$fd > } {fd}file.
What again was wrong with Roland's patch for cd -f? My concern with using /dev/fd then was that it will never make it into the POSIX standard because it relies on an absolute path (/dev/fd/...) and POSIX doesn't define absolute paths. And IMO cd -f $fd $relpath is more akin openat() and therefore much more familiar concept for those coming from C, C++, JAVA or Python (ksh93's closest competitors). Ced -- Cedric Blancher <[email protected]> Institute Pasteur _______________________________________________ ast-developers mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-developers
