Date: Wed, 12 Feb 2003 15:43:01 -0800 From: Matthew Hunt <mph@astro.caltech.edu> To: bastill@adam.com.au Cc: freebsd-questions@FreeBSD.ORG Subject: Re: PS1 command! ? Message-ID: <20030212234301.GA87465@wopr.caltech.edu> In-Reply-To: <1045092718.3e4ad96e29fcd@webmail.adam.com.au> References: <1045092718.3e4ad96e29fcd@webmail.adam.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <mph@astro.caltech.edu> * 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030212234301.GA87465>