On 19 June 2013 16:16, David Korn <[email protected]> wrote:
> cc: [email protected]
> Subject: Re: [ast-developers] When will the tree reopen for normal patches?
> --------
>
>> cd /dev/fd/$d no longer works
>
> What do you mean that it no longer works, I just did
> exec 9< /tmp
> and was able to do
> cd /dev/fd/9/foo
> to change to /tmp/foo.
>
/bin/ksh -c 'exec {n}</etc ; cd /dev/fd/$n/ ; true'
/bin/ksh: cd: /dev/fd/11/: [Bad address]
This has been reported to [email protected] several
times. Search for '[Bad address]'.
There were also requests for cd -f $n relative_path to allow relative
paths which go above the starting point of fd, e.g. cd -f $n ../../a/b
The other reason for cd -f $fd relative_path was that POSIX does not
standardise absolute paths and that bash and dash developers see it as
a cleaner API to openat() than using /dev/fd
Ced
--
Cedric Blancher <[email protected]>
Institute Pasteur
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers