bashrc overwritten
whoa: does anyone find that their .bashrc file gets overwritten?
something appears to touch just the line that sets PS1. this could be me somehow, but i really dont think so.... Code:
diff /root/.bashrc /root/.bashrc-from-before-reboot Code:
PS1=(BEFORE):(AFTER) Code:
PS1='\h-VERSION:AFTER which is really annoying, since it is malformed if you dont have a closing single quote {which i dont, as above}. im going to add another line that sets it more obliquely until i figure out WHAT is setting it and kill it. EDIT: a workaround is to do COLON=':', and then use $COLON instead of ':' in the line that sets the PS1. this is not a solution, though, because the replace pattern is so general it could produce all sorts of, erm, interesting behaviour, like bricking my n9. |
Re: bashrc overwritten
im using bash, btw, not ash.
i have a .profile: unset DISPLAY && exec bash |
Re: bashrc overwritten
after more extensive testing, it seems that ANY line that matches the perl regex:
Code:
(.*)PS1=(.*):(.*) Code:
$1PS1=$x:$2 Code:
\h-40-4_PR_005 #no PS1=.*:.* line, so n9 wont kill it => #no PS1='\h-40-4_PR_005:.* line, so n9 wont kill it this is SO stupid its incredible.. |
Re: bashrc overwritten
Hi,
It is possible that there is a watchdog service running in the background that prevents bashrc from being modified. But more importantly, why are you tinkering with bashrc? You could just write your own script, and set whatever paths you want there. |
Re: bashrc overwritten
1 Attachment(s)
Quote:
this is my own .bashrc, in $HOME. i use it on every system that runs bash, {n900, laptop, n9, desktop, android ereader, etc}. the bashrc works fine. i have an open kernel installed, and bash is running nicely, both when i ssh in and when i run meego-terminal. my aliases work, my gnu find/grep work {instead of busybox}. ....until i reboot. when i reboot, the $HOME/.bashrc gets modified in a strange fashion. it doesnt get replaced entirely, which i would understand and try to workaround. only certain lines get changed, and in a very poorly programmed way. the lines that get changed have to have the string "PS1=" and then the string ":" somewhere after it. lines that meet this arbitrary criteria are replaced as i describe above. |
Re: bashrc overwritten
I also use bash (but not as default shell) on Nokia N9, and the .bashrc is never rewritten. My PS1 line :
Code:
# Set colors for prompt |
Re: bashrc overwritten
Quote:
i believe only the one in /root/.bashrc is getting rewritten for me, contrary to what i implied earlier. |
Re: bashrc overwritten
Yeah, I am surprised to confirm that '/root/.bashrc' has the PS1 overwritten !
|
Re: bashrc overwritten
Quote:
|
All times are GMT. The time now is 03:31. |
vBulletin® Version 3.8.8