Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!cs.utexas.edu!news-server.csri.toronto.edu!utgpu!watserv1!watmath!att!att!cbnews!lml From: lml@cbnews.att.com (L. Mark Larsen) Newsgroups: comp.unix.shell Subject: Re: Echo? What echo? Korn shell 88 Message-ID: <1990Oct20.200320.16711@cbnews.att.com> Date: 20 Oct 90 20:03:20 GMT References: <90292.140155FISH@LIVERPOOL.AC.UK> Organization: AT&T Bell Laboratories Lines: 26 In article <90292.140155FISH@LIVERPOOL.AC.UK>, FISH@LIVERPOOL.AC.UK writes: > I have recently discovered a problem with ksh88. The print command has a flag > -s that allows you to place things into the history file, i.e. > > print -s Hello there > > will place "Hello there" in the history file. The manual claims that echo > uses the echo program which means that echo -s should print the string -s. I tried this with ksh86, ksh88, ksh88e and "echo -s" prints "-s". Of course, it is possible that your version of ksh was compiled to exclude echo - it is an option afterall. If so, there might be an alias (poorly defined) for it in your environment. Try "alias echo" or "whence -v echo" to see. A proper alias for echo (if needed) is: alias echo='print -' The '-' ends the argument string for print so, with this alias, your attempt to do "echo -s" will work as expected. No need to call /bin/echo. > Thanks in advance. Any ideas? > > Francis Fish L. Mark Larsen lml@atlas.att.com