Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!sgigate.sgi.com!nntp.coast.net!oleane!jussieu.fr!math.ohio-state.edu!uwm.edu!vixen.cso.uiuc.edu!uchinews!cbgw2.att.com!netnews.worldnet.att.net!ix.netcom.com!netcom.net.uk!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail From: brian@awfulhak.demon.co.uk (Brian Somers) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: FreeBSD cmd line editor / text editor recommends? Date: 20 Jun 1996 05:29:04 +0100 Organization: Coverform Ltd. Lines: 21 Message-ID: <4qak2g$ef@anorak.coverform.lan> References: <4psnen$p9h@hermes.athenet.net> <87g27wffhr.fsf@plm.xs4all.nl> X-NNTP-Posting-Host: awfulhak.demon.co.uk X-Newsreader: TIN [version 1.2 PL2] Peter Mutsaers (plm@xs4all.nl) wrote: : zsh is ideal. First of all it is 100% bourne shell compatible (a must : for me, I don't want to learn/remember two styles of shell), it is : also 100% ksh compatible (unlike bash). I assert that you are wrong. answer= echo ksh | read answer test -n "$answer" && { echo $answer; exit; } answer=notbash answer=\${answer#not} answer=`(eval echo $answer) 2>/dev/null` test -z "$answer" && echo sh || echo bash This script only tests for ksh, sh and bash. If zsh is both bourne and ksh compatible, what does this script say when run ? -- Brian <brian@awfulhak.demon.co.uk> Don't _EVER_ lose your sense of humour....