Path: utzoo!utgpu!attcan!uunet!husc6!bloom-beacon!mit-eddie!bbn!uwmcsd1!ig!agate!ucbvax!decwrl!labrea!denali!karish From: karish@denali.stanford.edu (Chuck Karish) Newsgroups: comp.unix.questions Subject: Re: Why doesn't \c work in sh/ksh echo on Suns? Summary: Use /usr/5bin/echo Keywords: sh,ksh Message-ID: <23230@labrea.Stanford.EDU> Date: 4 Aug 88 15:52:25 GMT References: <19256@tut.cis.ohio-state.edu> Sender: news@labrea.Stanford.EDU Reply-To: karish@denali.stanford.edu (Chuck Karish) Organization: Mindcraft, Inc. Lines: 22 In article <19256@tut.cis.ohio-state.edu> lvc@tut.cis.ohio-state.edu (Lawrence V. Cipriani) writes: >On the Sun 3/50's here at Ohio State University sh and ksh don't >work correctly when echo is given a string that terminates with >a \c. echo is a utility program, not a shell built-in, on SunOS. It sounds as if you're getting the BSD echo rather than the Sys5 echo. BSD echo suppresses the newline with the '-n' command line flag, not with a '\c' in the string. The manual page suggests that you choose the version you want by the placement of /usr/bin and /usr/5bin in your search path. I checked this on a machine that runs Version 3.2. Another approach, which should work anywhere, would be to do echo "Enter terminal type:" | tr '\012' ' ' Chuck Karish ARPA: karish@denali.stanford.edu BITNET: karish%denali@forsythe.stanford.edu UUCP: {decvax,hplabs!hpda}!mindcrf!karish USPS: 1825 California St. #5 Mountain View, CA 94041