echo (was Re: Regular Expression delimiters)

Chris Torek chris at mimsy.UUCP
Thu Apr 13 22:38:45 AEST 1989


In article <7702 at phoenix.Princeton.EDU> bernsten at phoenix.Princeton.EDU
(Dan Bernstein) writes:
>sh, if you have a working echo (whose only caveat is -n):
>  pattern="`(echo -n \"$ans\";echo '') ...
>  NOTE: Chris, want to take back that ``no workaround''?

Okay, make that `no sane workaround' :-)

More seriously: This fixes the bogosity in the BSD echo, but not the
SysV echo.  Sigh.  (Oh well, at least this makes another argument for
the `4.x > V' side :-) )

Incidentally, /bin/echo works properly with no arguments (produces
a blank line), unlike csh's built-in echo (which requires that empty
argument).
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.unix.questions mailing list