Possible bug in SunOS System V echo?

Peter da Silva peter at ficc.uu.net
Thu May 3 02:34:37 AEST 1990


Here's another solution to the problem. Put this in your scripts:

echo() {
cat << !
$*
!
}

Not too efficient, but guaranteed not to interpret backslash-cokebottle.
This is the way god intended echo to work.
-- 
 _--_|\  `-_-' Peter da Silva. +1 713 274 5180.      <peter at ficc.uu.net>
/      \  'U`  Have you hugged your wolf today?  <peter at sugar.hackercorp.com>
\_.--._/       Disclaimer: commercial solicitation by email to this address
      v                    is acceptable.



More information about the Comp.unix.wizards mailing list