Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Dec 2001 20:18:50 +0100
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Steve Price <steve@FreeBSD.org>
Cc:        Andreas Klemm <andreas@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: Re: cvs commit: ports/print/apsfilter Makefile ports/print/apsfilter/files patch-bin::aps2file ports/print/apsfilter/scripts pre-configure
Message-ID:  <20011217201850.A21347@student.uu.se>
In-Reply-To: <20011217130555.J72144@bsd.havk.org>; from steve@FreeBSD.org on Mon, Dec 17, 2001 at 01:05:55PM -0600
References:  <200112171847.fBHIlbP69769@freefall.freebsd.org> <20011217130555.J72144@bsd.havk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 17, 2001 at 01:05:55PM -0600, Steve Price wrote:
> On Mon, Dec 17, 2001 at 10:47:37AM -0800, Andreas Klemm wrote:
> >   Log:
> >   Unluckily FreeBSD's shell isn't able to read from/write to /dev/stdin
> >   and stdout.
> 
> Perhaps I missed the discussion somewhere else but can you please
> explain what this means and give an example of a short script that
> doesn't work with /bin/sh?

Just try the following command:

echo "hello" > /dev/stdout


If you use tcsh or zsh (or presumably bash but I haven't tried that) this
will indeed output "hello" to stdout.
If you use /bin/sh it will instead complain that it cannot create
/dev/stdout.

This is probably a bug in /bin/sh

> 
> >   Therefore we have to use bash as shell for /usr/local/bin/aps2file
> >   program.
> 
> You don't *have* to use bash.  You could probably get away with using
> zsh or a number of other shells.  Personally and maybe I'm the only
> one but I'd like to see all of the ports that require bash be changed
> to use zsh instead because I've got that on most all of my systems
> already. :)

Yes, that would be nice :-), but I think that bash is somewhat more
standards-compliant than zsh.
(As I understand it the bash-developers try fairly hard to make sure bash 
follows the POSIX standard.  The zsh developers don't care all that much
about it.)


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se


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?20011217201850.A21347>