--(Once apon a time, in comp.unix.shell,)--
--(Lekeas GK said it like only they can.)--
> Hi All,
> I am using the tcsh shell as my default shell but sometimes I do work with
> the bash shell. I tried to set the prompt so that it will display the
> hostname, the history number of the command and the dollar symbol. In
> order to do that, I typed the following command in both my .profile and
> .login files: PS1="(\h)\!$". However, when I execute it the prompt changes
> to (\h)\!$.
> Could somebody please explain to me why this happens and how can I change
> the prompt to get the effect I want?
> Thanks in advance.
I tested it and PS1="(\h)\!$" dose work as designed. notice that you
say that "\h" in the final is not "h". If this where bash it would
not parse it like that. If $SHELL is indead bash then there is some
strange voodoo going on and i would recompile bash and see if you get
a differant result.
GUI's are for slackers. ibpconf.sh 6.1 on freshmeat.net
The easiest way to customize the command line. By Faux_Pseudo
It's a damn poor mind that can only think of one way to spell a word.
- Andrew Jackson