🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1448

Re: How to pipe stderr to a command in Bourne or Korn shell

#1448
From: Dan Bernstein
Date: Tue, 09 Oct 1990 20:26
9 lines
722 bytes
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
Technical Details
Message-ID: <13411:Oct920:26:3590@kramden.acf.nyu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstnd
References: <1990Oct8.165133.17187@cti-software.nl> <668@atcmpe.atcmp.nl>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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