Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!oliveb!intelca!mipos3!merlyn From: merlyn@intelob.biin.com (Randal L. Schwartz @ Stonehenge) Newsgroups: comp.unix.wizards Subject: Re: Echo Message-ID: <3331@mipos3.intel.com> Date: 13 Dec 88 19:07:58 GMT References: <6557@june.cs.washington.edu> <960@etnibsd.UUCP> Sender: news@mipos3.intel.com Reply-To: merlyn@intelob.biin.com (Randal L. Schwartz @ Stonehenge) Organization: Stonehenge; netaccess via BiiN, Hillsboro, Oregon, USA Lines: 21 In-reply-to: vsh@etnibsd.UUCP (Steve Harris) In article <960@etnibsd.UUCP>, vsh@etnibsd (Steve Harris) writes: | The problem is, what if I want /usr/ucb before /usr/5bin in my PATH, | but also want my echo to recoginze sysV escapes? I have to do, e.g.: | | OPATH=$PATH | $PATH=/usr/5bin:$PATH | echo "\tthis is a test\n" | PATH=$OPATH Will it not work to do ... PATH=/usr/5bin:$PATH echo "\tthis is a test\n" ... since PATH will be different for the execution of only the "echo" command? Also, your second line *expands* PATH, and doesn't set it. -- Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 on contract to BiiN Technical Information Services (for now :-), in a former Intel building in Hillsboro, Oregon, USA. or ...!tektronix!inteloa[!intelob]!merlyn SOME MAILERS REQUIRE GRRRRR! Standard disclaimer: I *am* my employer!