[rescue] The Machine Emulator (TME) on a Mac?

r.stricklin bear at typewritten.org
Thu May 8 21:39:17 CDT 2014


On May 8, 2014, at 9:03 AM, Mouse wrote:

>> But in any case, the Bourne shell does not have "echo -n",
>
> Does it have echo as a builtin at all?  IIRC back in the days when
> Bourne was writing his shell echo was not a shell builtin.

I hadn't thought of that, but you are indeed correct. The V7 manual has sh(1)
with no echo built-in, and echo(1) has -n. Hah.

For the record:

SGI GL1-W2.1 echo(1) no -n, but with \c; sh(1) no echo built-in.
ULTRIX 2.0.0 echo(1) has -n and no \c; sh(1) no echo built-in.
SunOS 2.5.1 echo(1) mentions /usr/bin/echo, sh's, and ksh's built-in echo do
not have -n, while csh's built-in and /usr/ucb/echo do have -n ("but do not
understand the back-slashed escape characters"). sh(1) has echo built-in, and
seems to have appeared as a built-in sometime between SunOS 2.0 and 3.2, with
the following hilarious footnote from 3.2's echo(1v):

"If /usr/5bin is ahead of /usr/bin in the Bourne shell's search path, its
built-in echo command mimics the System V version of echo as described here"
and supports BOTH -n and \c. Nice.


In any case... no, not even remotely portable.


ok
bear.

--
until further notice


More information about the rescue mailing list