Lure
08-10-2002, 06:33 PM
my books, websearch and threads... can't find an answer
when I type PS1="\w\\$ " behind the bash I get a perfect new bash that shows the current dir.
When I try to do this from a script like
#!/bin/bash
PS1="\w\\$ " && echo prompt altered || echo prompt not altered
I get a msg saying [prompt altered] but that is not true. I still have my old bash prompt.
I have read and read about / "and ' untill I fell a sleep and now before I go to bed I turn to one of you to help me.
Where do I mess up? nevermind the msgs I try to output....I want that prompt to obey my will-)
:D :D :D
when I type PS1="\w\\$ " behind the bash I get a perfect new bash that shows the current dir.
When I try to do this from a script like
#!/bin/bash
PS1="\w\\$ " && echo prompt altered || echo prompt not altered
I get a msg saying [prompt altered] but that is not true. I still have my old bash prompt.
I have read and read about / "and ' untill I fell a sleep and now before I go to bed I turn to one of you to help me.
Where do I mess up? nevermind the msgs I try to output....I want that prompt to obey my will-)
:D :D :D