From owner-freebsd-questions Wed Feb 12 15:43: 7 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 D48ED37B401 for ; Wed, 12 Feb 2003 15:43:06 -0800 (PST) Received: from wopr.caltech.edu (wopr.caltech.edu [131.215.103.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FFC743F3F for ; Wed, 12 Feb 2003 15:43:06 -0800 (PST) (envelope-from mph@wopr.caltech.edu) Received: from wopr.caltech.edu (localhost.caltech.edu [127.0.0.1]) by wopr.caltech.edu (8.12.3/8.12.3) with ESMTP id h1CNh13v087550; Wed, 12 Feb 2003 15:43:01 -0800 (PST) (envelope-from mph@wopr.caltech.edu) Received: (from mph@localhost) by wopr.caltech.edu (8.12.3/8.12.3/Submit) id h1CNh1us087549; Wed, 12 Feb 2003 15:43:01 -0800 (PST) Date: Wed, 12 Feb 2003 15:43:01 -0800 From: Matthew Hunt To: bastill@adam.com.au Cc: freebsd-questions@FreeBSD.ORG Subject: Re: PS1 command! ? Message-ID: <20030212234301.GA87465@wopr.caltech.edu> References: <1045092718.3e4ad96e29fcd@webmail.adam.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1045092718.3e4ad96e29fcd@webmail.adam.com.au> User-Agent: Mutt/1.5.1i 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 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. -- Matthew Hunt * Science rules. http://www.pobox.com/~mph/ * To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message