Subject: echo foo > /dev/stdout
To: None <netbsd-users@netbsd.org>
From: Jan Schaumann <jschauma@netmeister.org>
List: netbsd-users
Date: 08/21/2007 16:02:59
--tqI+Z3u+9OQ7kwn0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

I'm having one of these brain things, where I don't get why the shell is
doing what it's doing, even though there's likely a very easy
explanation:

$ echo foo >/dev/stdout
foo
$ cat >foo.sh <<EOS
echo foo >/dev/stdout
EOS
$ sh foo.sh
foo.sh: cannot create /dev/stdout: error 9
$=20

Huh?

-Jan

--=20
You can blame it all on the Internet.
	Larry Wall

--tqI+Z3u+9OQ7kwn0
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)

iD8DBQFGy28jfFtkr68iakwRAjHHAJ9bM6gdaAN6njn3fk+ih7ITCJIi0wCbBy6Q
pVwTfh7/eiw2DTsdX15Lw6Q=
=mckX
-----END PGP SIGNATURE-----

--tqI+Z3u+9OQ7kwn0--