shell (tcsh) prompt gets reset on every cd

Hi,

I type in my shell:
set prompt="(%M) %c%b%# "

to get something like:
a/b/c>

this works, but only partially.
every time I move to to a different directory (i.e. 'cd <some dir>'), the prompt is reset. Meaning, when I 'echo $prompt' after setting the prompt I get the correct prompt, but right after that when I cd to a different dir, 'echo $prompt' returns blank.

of course the prompt itself doesn't show 'a/b/c>' anymore.

what can be cause this?
thank you

Arent you talKing DOS here? It seems to me... and so wrong forum

A prompt in unix could be PS1 (PS2 etc...) environment variable and set normally by default at login either in /etc/profile (for all users...) or in your .profile...

no, this isn't DOS, it's tcsh.
let me clarify.

I have the 'set prompt' command in my ~/.cshrc which runs at login.
for some reason this isn't working, as I detailed in my previous post.
to check what happens to the prompt, i just typed the 'set prompt' command in my shell and saw my prompt changes accordingly, but when i change dir the prompt is reset to showing only one level of directories (and not 3 as i wanted). this is probably what causing the default settings from ~/.cshrc not to work.
what can dynamically change $prompt like that?

p.s.
i don't have $PS1 set in my shell by default

15 years since last time I used tcsh... excuse my lack of memory....
and yes you are right its prompt in .cshrc and no PS1 (sh / ksh...), I will see if I can find in my old notes ( will be hard to find though... 15 years...) anything...

All the best

What are you trying to achieve for a prompt display?
I dont undestand the issue.. could you give a sample of what your prompt display, lest say when you are in your home directory, then go to /usr/local/bin and give us the new prompt and explain what you want, thanks

in /usr/local/bin, the prompt is now:
(bin)

I would like it to be:
/usr/local/bin>

been awhile for me too... try:

set prompt='%s%B%m:%b [%B%T%b] [%h] %~%#'

What does this give you?

set prompt = "%B%m%b [%/] "

thank you for your answers.
all of these do change the prompt.
I found out that on tcsh, every change dir makes the prompt setting go away.
so i simply added an alias for 'cd' which sets the prompt after every change dir

Strange - this works as expected on Solaris (no aliasing needed).....