Re: How to include `$$' literally in the PS1 prompt?

2007-10-07 Thread Andreas Schwab
"Clark J. Wang" <[EMAIL PROTECTED]> writes: > On 9/30/07, Andreas Schwab <[EMAIL PROTECTED]> wrote: >> >> "Clark J. Wang" <[EMAIL PROTECTED]> writes: >> >> > Anybody has any idea? >> >> PS1='[\\$\\$=$$ \w] \$ ' > > > Sure it works but I don't think this is the way it should be. In this way, > to i

Incorrect error reporting for arithmetics

2007-10-07 Thread AnMaster
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' - -DCONF_MACHTYPE='x86_64-pc

Re: How to include `$$' literally in the PS1 prompt?

2007-10-07 Thread Clark J. Wang
On 9/30/07, Andreas Schwab <[EMAIL PROTECTED]> wrote: > > "Clark J. Wang" <[EMAIL PROTECTED]> writes: > > > Anybody has any idea? > > PS1='[\\$\\$=$$ \w] \$ ' Sure it works but I don't think this is the way it should be. In this way, to include `\\' in the prompt we have to write like this: $ PS

Re: How to include `$$' literally in the PS1 prompt?

2007-10-07 Thread Clark J. Wang
On 10/8/07, Andreas Schwab <[EMAIL PROTECTED]> wrote: > > "Clark J. Wang" <[EMAIL PROTECTED]> writes: > > > On 9/30/07, Andreas Schwab <[EMAIL PROTECTED]> wrote: > >> > >> "Clark J. Wang" <[EMAIL PROTECTED]> writes: > >> > >> > Anybody has any idea? > >> > >> PS1='[\\$\\$=$$ \w] \$ ' > > > > > > Su