Linux Mint 21.3: Bash Missing Standard Features and No Color; It's Probably My Fault
by des_a from LinuxQuestions.org on (#6PXBN)
I'm working on my scripts to set up a computer. They actually tested pretty good before, BUT, not in the case that the computer was an Office computer (the computer at my Mom's). Right now, that computer doesn't work. I'm trying to get things to work, so that that computer will work again. Please help me.
Before I post code, as I'm not sure what's most relevant right now, I want to describe the problem. I essentially wanted to add a single line, to my .bashrc and .bash_logout, for every user, so that I could do anything I wanted (a single line is all it takes), and I could slowly develop my own files. But somehow, I broke almost everything I could, that was to just be expected out of bash. See my attachments. My colored prompt, is what I expected and want. My plain prompt with no color, and the line that looks like [^A], but is when I tried to test the history, is what I have. The reason one works and one doesn't, is they are from two different machines. My patches have been applied to the machine with no color. It's a part of the process of debugging my scripts. But I need help. It's GOT to be with my default .bashrc or something. I don't understand the pre-existing code, though I could learn. Unless I really have to, I'm not interested. I just want MY code to WORK RIGHT.
I changed, and went with the safer method, of attempting to add lines to those files, rather than replace the whole files. Unless possibly I restored after I'd already changed those files or something, when I restored the default ones. I'm a bit stumped.
My permissions on the files and my owner and group all look as they probably should be, 644 permissions, with the /etc/skel being owned by "root root", and, in the case of the user, "des", owned by "des des". This is starting with .bashrc, thinking it's the problem. So, I'm guessing, it must be something in their code that's not working right. I don't know what I could have changed that would effect that! Or could it simply be the wrong contents I restored? I'm asking here, because it will take days to test from scratch, though I will try to add code to mitigate some of that time, before I try that again. Please help me if you can. This is a LQ question, not a Linux Mint question. They probably can't help on that forums. This is probably NOT a common problem. Other than that, I'm squashing all the bugs!
Attached Thumbnails
Before I post code, as I'm not sure what's most relevant right now, I want to describe the problem. I essentially wanted to add a single line, to my .bashrc and .bash_logout, for every user, so that I could do anything I wanted (a single line is all it takes), and I could slowly develop my own files. But somehow, I broke almost everything I could, that was to just be expected out of bash. See my attachments. My colored prompt, is what I expected and want. My plain prompt with no color, and the line that looks like [^A], but is when I tried to test the history, is what I have. The reason one works and one doesn't, is they are from two different machines. My patches have been applied to the machine with no color. It's a part of the process of debugging my scripts. But I need help. It's GOT to be with my default .bashrc or something. I don't understand the pre-existing code, though I could learn. Unless I really have to, I'm not interested. I just want MY code to WORK RIGHT.
I changed, and went with the safer method, of attempting to add lines to those files, rather than replace the whole files. Unless possibly I restored after I'd already changed those files or something, when I restored the default ones. I'm a bit stumped.
My permissions on the files and my owner and group all look as they probably should be, 644 permissions, with the /etc/skel being owned by "root root", and, in the case of the user, "des", owned by "des des". This is starting with .bashrc, thinking it's the problem. So, I'm guessing, it must be something in their code that's not working right. I don't know what I could have changed that would effect that! Or could it simply be the wrong contents I restored? I'm asking here, because it will take days to test from scratch, though I will try to add code to mitigate some of that time, before I try that again. Please help me if you can. This is a LQ question, not a Linux Mint question. They probably can't help on that forums. This is probably NOT a common problem. Other than that, I'm squashing all the bugs!
Attached Thumbnails