Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Dec 2001 17:57:12 -0600
From:      Steve Price <steve@FreeBSD.org>
To:        Warner Losh <imp@harmony.village.org>
Cc:        Erik Trulsson <ertr1013@student.uu.se>, Andreas Klemm <andreas@FreeBSD.org>, 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>
In-Reply-To: <200112172140.fBHLeDM79393@harmony.village.org>; from imp@harmony.village.org on Mon, Dec 17, 2001 at 02:40:13PM -0700
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011217175712.R72144>