Bug in /bin/sh??

Jim Brayton jbrayton at mipos2.intel.com
Sat Jul 1 06:08:25 AEST 1989


The following appears to be a bug in /bin/sh under Ultrix 2.2 and 3.1 (the only
Ultrix system's I have access to):

The short shell program:

=================================
#!/bin/sh

bogus=`cat << END
a
END
`

/bin/echo $bogus
=================================

should print an 'a' when run, instead under Ultrix it reports an error message like:

	/tmp/sh108410: cannot open

I've tried this under SunOS 4.0 and it works as expected.  Is this a known problem with
Ultrix?

	- jim brayton -


===============================================================================
Jim Brayton, Microprocessor Design, Intel Corp.
UUCP: {decwrl,hplabs,oliveb}!intelca!mipos3!mipos2!jbrayton
ARPA: jbrayton%mipos2.intel.com at relay.cs.net



More information about the Comp.unix.ultrix mailing list