Why doesn't \c work in sh/ksh echo on Suns?
Richard A. O'Keefe
ok at quintus.uucp
Fri Aug 5 08:49:00 AEST 1988
In article <19256 at tut.cis.ohio-state.edu> lvc at tut.cis.ohio-state.edu (Lawrence V. Cipriani) writes:
>On the Sun 3/50's here at Ohio State University sh and ksh [have trouble with]
> echo "Enter terminal type: \c"
Don't forget, AT&T "enhanced" echo(1) -- until it broke -- so there are
*two* versions of echo in SunOS:
/usr/bin/echo -- BSD version
/usr/5bin/echo -- ATT version
Just to confuse things, *both* versions echo are also built into sh.
It works out which one you want by noting whether you search /usr/5bin
before (you get the ATT version) or after (you get the BSD version)
you search /usr/bin. THIS IS IN THE MANUAL PAGE FOR echo(1v).
If you haven't already got /usr/5bin in your path, just do
PATH=/usr/5bin:$PATH
If you're used to System V, you'll probably want to do that anyway.
More information about the Comp.unix.questions
mailing list