~$ ksh --version
  version         sh (AT&T Research) 93t+ 2009-05-01

(btw:
http://www2.research.att.com/sw/download/
     09-07-01  --- Release ksh93t+  ---
is it my packaged version of ksh that has got a problem with the
date? (debian unstable x86package version 93t+-2, same with
ubuntu karmic amd64 93t+-2))


$ echo test <&-
ksh: open file limit exceeded
$ ksh -c 'echo test <&-'
test
$ sleep 10 | : <&-
ksh: open file limit exceeded
$ : <&-
$ echo 100 | ls -l /dev/fd/3 3<&0 <&-
ksh: open file limit exceeded
$ echo 100 | cat /dev/fd/3 3<&0
cat: /dev/fd/3: No such device or address
$ echo 100 | ls -l /dev/fd/3 3<&0
lrwx------ 1 chazelas chazelas 64 2009-11-13 10:42 /dev/fd/3 -> socket:[27565]

What's that business of using Unix domain sockets for pipes?! I
see nothing in the RELEASE file about that change.

Also:

$ sleep 3 | :

does sleep for 3 seconds, but:

$ sleep 3 | cat < /dev/null
or
$ sleep 3 | cat 3<&0 < /dev/null

do not, and a sleep process is left running in the background.

That behavior is POSIX conformant as the shell is only required
to wait for the last command, but not very consistent. Why wait
for sleep in the first case and not in the second?


-- 
Stephane


_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to