From owner-freebsd-questions Wed Feb 12 17:38: 8 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 624CD37B405 for ; Wed, 12 Feb 2003 17:38:06 -0800 (PST) Received: from lightning.adam.com.au (lightning.adam.com.au [203.2.124.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 88EBD43FAF for ; Wed, 12 Feb 2003 17:38:05 -0800 (PST) (envelope-from bastill@adam.com.au) Received: (qmail 18820 invoked by uid 65534); 13 Feb 2003 01:38:26 -0000 Received: from 202.6.151.68 ( [202.6.151.68]) as user bastill@mail.adam.com.au by webmail.adam.com.au with HTTP; Thu, 13 Feb 2003 12:08:25 +1030 Message-ID: <1045100305.3e4af71201914@webmail.adam.com.au> Date: Thu, 13 Feb 2003 12:08:26 +1030 From: bastill@adam.com.au To: Matthew Hunt Cc: freebsd-questions@FreeBSD.ORG Subject: Re: PS1 command! ? References: <1045092718.3e4ad96e29fcd@webmail.adam.com.au> <20030212234301.GA87465@wopr.caltech.edu> In-Reply-To: <20030212234301.GA87465@wopr.caltech.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-Originating-IP: 202.6.151.68 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Quoting Matthew Hunt : > On Thu, Feb 13, 2003 at 10:01:58AM +1030, bastill@adam.com.au wrote: > > > *) PS1="$(PS1)S ";; > > > Yet on login I get this error message: > > bash: PS1: command not found > > $(foo) is the same as `foo`. It runs the command "foo" and uses its > output. So the shell is looking for a command called PS1. > > You want ${PS1} (curly braces, not parentheses). I think your mind has > been tainted by Makefiles which use $(foo) for variable substitution. "Well I'm blessed", said Pooh, being bothered. :-) So simple. Works too. Thanks. -- Brian ----------------------------------------------- This message sent through Adam Internet Webmail http://www.adam.com.au To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message