des at des.no (Dag-Erling Smørgrav) writes: > OK, I'm starting to suspect that this is actually a bug in /bin/sh It isn't - I incorrectly assumed that fcntl(fd, F_DUPFD, n) is semantically equivalent to dup2(fd, n), but it isn't. I'll have a patch committed RSN. DES -- Dag-Erling Smørgrav - des at des.no