Re: AIX 5.2: problem with here documents in ksh93

From: Stephane CHAZELAS (stephane_chazelas_at_yahoo.fr)
Date: 09/29/03


Date: 29 Sep 2003 11:23:24 GMT

Jurjen Oskam wrote:
[...]
> truss -o truss.out ksh93 ./try:
>
> kread(4, " # ! / b i n / k s h 9 3".., 4096) = 269
> statx("/bin", 0x2FF21E10, 76, 0) = 0
> statx("/usr/bin", 0x2FF21E88, 76, 0) = 0
> statx("/bin/cat", 0x2FF21ED0, 76, 0) = 0
> lseek(4, 47, 0) = 47
> kfork() = 1528022

And what does ksh do after the fork? (-f truss option (?)).

[...]
> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
> lsof 1355916 root 0r VREG 10,7 12 55 /tmp (/dev/hd3)

lsof must be unable to get full paths under AIX, but it seems fd
0 is connected to a file in /tmp, truss should show why it
appears empty.

-- 
Stéphane