Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!haven!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.questions Subject: echo (was Re: Regular Expression delimiters) Message-ID: <16900@mimsy.UUCP> Date: 13 Apr 89 12:38:45 GMT References: <993@n8emr.UUCP> <6710@bsu-cs.bsu.edu> <7702@phoenix.Princeton.EDU> Distribution: usa Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 18 In article <7702@phoenix.Princeton.EDU> bernsten@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@mimsy.umd.edu Path: uunet!mimsy!chris