Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ncar!tank!oddjob!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.questions Subject: echo Message-ID: <14024@mimsy.UUCP> Date: 17 Oct 88 05:31:01 GMT References: <192@vlsi.ll.mit.edu> <1577@hp-sdd.HP.COM> Distribution: comp Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 12 In article <1577@hp-sdd.HP.COM> allyn@hp-sdd.hp.com (Allyn Fratkin) writes: >chars=`echo '\040\011\014\c'` # use -n with bsd echo The 2BSD and 4BSD programs correctly do *not* interpret `\' escape sequences by default. (Of course, they also do not ever do it....) V8 and V9 echo use `-e' to enable escapes. Berkeley will no doubt follow whatever POSIX says. (Rather than mucking with echo, USG should have supplied printf(1).) -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris