[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] Bash (was: pppd)



On Fri, 16 Apr 1999, Julian Reschke wrote:

> > > Of course, it has: PS1="\[$(tput bold)\]foobar\[$(tput sgr0)\]"
> >
> > That requires tput which belongs to ncurses and is not part of KGMD,
> > doesn't it?  Anyway, ncurses should be pretty-standard even on MiNT today.
> 
> How often will this be evaluated? Every time the prompt appears?

This way it will only be evaluated when you set it. However, when you use
' instead of " it will be evaluated each time the prompt appears.

Try '$PWD' and "$PWD" as prompt and you'll see. :)

Maurits.