Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!ukma!gatech!hubcap!ncrcae!ncrlnk!uunet!mcvax!hp4nl!philmds!leo From: leo@philmds.UUCP (Leo de Wit) Newsgroups: comp.unix.wizards Subject: Re: Echo Message-ID: <892@philmds.UUCP> Date: 17 Dec 88 09:58:29 GMT References: <6557@june.cs.washington.edu> <960@etnibsd.UUCP> <3331@mipos3.intel.com> <723@auspex.UUCP> Reply-To: leo@philmds.UUCP (Leo de Wit) Organization: Philips I&E DTS Eindhoven Lines: 24 In article <723@auspex.UUCP> guy@auspex.UUCP (Guy Harris) writes: [lines deleted...] |Doing | | (PATH=/usr/5bin:$PATH echo "\tthis is a test\n") | |provides a workaround; this also "does what you want", at least under |SunOS 4.0, and doesn't smash PATH; the parentheses force the "echo" to |be done in a subshell, and probably forces PATH to be modified there as |well. Quoting the 'echo' command will force no builtin to be used; it will also prevent an alias from being evaluated (at least both in the csh and a Bourne-ish shell I use here). So probably something like PATH=/usr/5bin:$PATH \echo "\tthis is a test\n" or PATH=/usr/5bin:$PATH "echo" "\tthis is a test\n" will suffice (no subshell needed). Leo.