Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2003 12:08:26 +1030
From:      bastill@adam.com.au
To:        Matthew Hunt <mph@astro.caltech.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: PS1 command! ?
Message-ID:  <1045100305.3e4af71201914@webmail.adam.com.au>
In-Reply-To: <20030212234301.GA87465@wopr.caltech.edu>
References:  <1045092718.3e4ad96e29fcd@webmail.adam.com.au> <20030212234301.GA87465@wopr.caltech.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Matthew Hunt <mph@astro.caltech.edu>:

> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1045100305.3e4af71201914>