2013/8/1 Irek Szczesniak <[email protected]>:
> I'm trying to create a file relative to a directory fd but it doesn't work:
>
> ksh -c 'command exec {n}<"." ; echo "foo" >~{n}/test1 ; true '
>
> Does anyone know what's wrong in this case?
>
> ksh --version
> version sh (AT&T Research) 93v- 2013-07-24
Grrr... someone broke directory fds again...
Glenn: It worked in ast-ksh.2013-07-19 and first failed in ast-ksh.2013-07-27:
-- snip --
$ (find . -name ksh -type f | sort -u | fgrep 'linux.i386-64/bin/ksh'
| while read i ; do echo "#### $i" ; "$i" -c 'command exec {n}<"." ;
echo "test123" >~{n}/test1 ; true ' ; done)
...
...
### ./ast_ksh_20130719/build_i386_64bit_debug_patched/arch/linux.i386-64/bin/ksh
#### ./ast_ksh_20130719/build_i386_64bit_debug_stpcpy/arch/linux.i386-64/bin/ksh
#### ./ast_ksh_20130727/build_fgetcwd/arch/linux.i386-64/bin/ksh
./ast_ksh_20130727/build_fgetcwd/arch/linux.i386-64/bin/ksh:
/proc/30863/fd/11/test1: cannot create [Permission denied]
#### ./ast_ksh_20130727/build_i386_64bit_debug/arch/linux.i386-64/bin/ksh
-- snip --
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) [email protected]
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers