From owner-cvs-all Mon Dec 17 15:57:22 2001 Delivered-To: cvs-all@freebsd.org Received: from mail.hiwaay.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id 3E0D337B41A; Mon, 17 Dec 2001 15:57:20 -0800 (PST) Received: from bsd.havk.org (user-24-214-88-13.knology.net [24.214.88.13]) by mail.hiwaay.net (8.12.1/8.12.1) with ESMTP id fBHNvEBZ009440; Mon, 17 Dec 2001 17:57:17 -0600 (CST) Received: by bsd.havk.org (Postfix, from userid 1001) id BCE3C1A786; Mon, 17 Dec 2001 17:57:12 -0600 (CST) Date: Mon, 17 Dec 2001 17:57:12 -0600 From: Steve Price To: Warner Losh Cc: Erik Trulsson , Andreas Klemm , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: ports/print/apsfilter Makefile ports/print/apsfilter/files patch-bin::aps2file ports/print/apsfilter/scripts pre-configure Message-ID: <20011217175712.R72144@bsd.havk.org> References: <20011217201850.A21347@student.uu.se> <200112171847.fBHIlbP69769@freefall.freebsd.org> <20011217130555.J72144@bsd.havk.org> <20011217201850.A21347@student.uu.se> <200112172140.fBHLeDM79393@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200112172140.fBHLeDM79393@harmony.village.org>; from imp@harmony.village.org on Mon, Dec 17, 2001 at 02:40:13PM -0700 X-Operating-System: FreeBSD 4.4-STABLE i386 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Dec 17, 2001 at 02:40:13PM -0700, Warner Losh wrote: > csh works. But sh says: > $ echo hello > /dev/stdout > cannot create /dev/stdout: permission denied > $ ls -l /dev/stdout > crw-rw-rw- 1 root wheel 22, 1 Jun 18 2001 /dev/stdout Right and looking at the doio function src/contrib/tcsh/sh.sem.c starting at around line 855 they workaround this problem with the dcopy function which is essentially a call to dup/dup2. I've tried a similar thing for /bin/sh and while I was able to make it work for this particular case I'm missing some other magic because it breaks other types of redirection. Hmm... -steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message