echo without an argument is not portable

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Wed Aug 22 00:59:14 AEST 1990


In article <1681 at blackbird.afit.af.mil> hamlin at blackbird.afit.af.mil (Joe Hamlin) writes:
> (tr '\012' ' '; echo)

Some versions of echo won't do anything without an argument. echo '' is
much more portable.

---Dan



More information about the Comp.unix.questions mailing list