Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.shell Subject: Re: How to pipe stderr to a command in Bourne or Korn shell Message-ID: <13411:Oct920:26:3590@kramden.acf.nyu.edu> Date: 9 Oct 90 20:26:35 GMT References: <1990Oct8.165133.17187@cti-software.nl> <668@atcmpe.atcmp.nl> Organization: IR Lines: 9 In article <668@atcmpe.atcmp.nl> henk@atcmp.nl (Henk M. Keller) writes: > 3>&1 will probably be implemented as > close(3); /* To ensure 3 is free */ > fcntl(1, F_DUPFD, 3); /* Returns lowest possible */ > /* 'dup'ed file descr. >= 3 */ Or dup2(1,3). ---Dan