Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mel.aone.net.au!news.mira.net.au!vic.news.telstra.net!act.news.telstra.net!news.telstra.net!psgrain!ru.uni.net.za!quagga.ru.ac.za!hermes.is.co.za!hammer.uoregon.edu!csulb.edu!data.ramona.vix.com!sonysjc!su-news-hub1.bbnplanet.com!news.bbnplanet.com!feeder.chicago.cic.net!newsxfer.nether.net!news.he.net!news.onramp.net!news-in.iadfw.net!news.gymnet.com! LSNT1!lsbsdi6.lightspeed.net!news3.crl.com!nntp2.crl.com!news.gv.tsc.tdk.com!hub.org!news-feed.inet.tele.dk!news.maxwell.syr.edu!news.mathworks.com!fu-berlin.de!news.belwue.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!not-for-mail From: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: pdksh does not work!!!!! Please help Date: 2 Jun 1997 11:40:01 GMT Organization: University of Karlsruhe, Germany Lines: 29 Sender: Philipp Mergenthaler <un1i@ab141.rz.uni-karlsruhe.de> Message-ID: <7C336DD373B8C780.AA25E82BB1DBD47D.EFD8215B88523BB2@library-proxy.airnews.net> X-Orig-Message-ID: <5mubeh$lqe$1@nz12.rz.uni-karlsruhe.de> References: <3391B2A4.41C67EA6@adelphia.net> NNTP-Proxy-Relay: library.airnews.net NNTP-Posting-Host: biceps.gymnet.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-User: un1i X-Newsreader: TIN [UNIX 1.3 unoff BETA 970409; AIX 4.1] Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:42172 Glen <gippolit@adelphia.net> wrote: > When I try to use print from the command line no problems, > but if I use print in a shell script it say's can't find > print!!!! > I alway's thought that print was a shell built in. [...] print is AFAIK a built-in command in the more modern shells, but not in sh. So you can either - use echo - begin your shell script with #!/usr/local/bin/ksh (but notice, that you might now stumble upon other differences between ksh and sh) - use printf instead of print. printf is similar to the c function with the same name. Notice: printf does _not_ append a newline to the text it prints, so when you use it from the command line, the last line of its output will be overwritten by the prompt. Bye, Philipp P.S.: your "!" key seems to get stuck easely. -- P. Mergenthaler, un1i@rz.uni-karlsruhe.de | Wer halb gebildet, ist der Tel.: 0721/694532 | schoenste Narr. Klosterweg 28 / I609, 76131 Karlsruhe | (Weiss jemand, von wem das ist?) http://www.uni-karlsruhe.de/~un1i/ |