X-Received: by 2002:a05:622a:2c2:b0:2f3:ce9c:22f9 with SMTP id a2-20020a05622a02c200b002f3ce9c22f9mr9285896qtx.345.1652083134999; Mon, 09 May 2022 00:58:54 -0700 (PDT) X-Received: by 2002:a9d:6645:0:b0:605:fb52:3739 with SMTP id q5-20020a9d6645000000b00605fb523739mr5487322otm.124.1652083134763; Mon, 09 May 2022 00:58:54 -0700 (PDT) Path: ...!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: alt.os.linux Date: Mon, 9 May 2022 00:58:54 -0700 (PDT) In-Reply-To: <20220507162535.39fa6e3f@nx-74205> Injection-Info: google-groups.googlegroups.com; posting-host=2001:67c:2628:647:12:0:0:9c; posting-account=Vm0uAgoAAABvTYeieyl4GElbOkHDqJYr NNTP-Posting-Host: 2001:67c:2628:647:12:0:0:9c References: <20220507162535.39fa6e3f@nx-74205> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <7a73ae96-0396-4d64-83ff-0beef3a84dd9n@googlegroups.com> Subject: Re: bash prompt hoof-in-mouth disease From: Steve Carroll Injection-Date: Mon, 09 May 2022 07:58:54 +0000 Content-Type: text/plain; charset="UTF-8" Bytes: 4312 Lines: 88 On Saturday, May 7, 2022 at 7:25:38 AM UTC-7, Aragorn wrote: > On 07.05.2022 at 08:49, bad sector scribbled: > > the PSx variables are: > > $PS1 (direct) = \e[0;93m\w #\e[m > > $PS2 (interactive) = > > > $PS3 = > > $PS4 = + > > > > the (Suse) system wide setup in /etc/bash.bashrc is: > > > > case "$(declare -p PS1 2> /dev/null)" in > > *-x*PS1=*) > > ;; > > *) > > # With full path on prompt > > PS1="${_t}${_u}:\w${_p} " > > # # With short path on prompt > > # PS1="${_t}${_u}:\$(spwd)${_p} " > > # # With physical path even if reached over sym link > > # PS1="${_t}${_u}:\$(pwd -P)${_p} " > > ;; > > > > > > the user setup in ~/.bashrc is: > > > > #################usermodded############### > > DEFAULT=$PS1 > > #PS1="\e[0;34m\w #\e[m " > > DEFAULT=$PS1 > > PS1="\e[0;93m\w #\e[m " > > #PS1=$DEFAULT > > ########################################## > > > > after commanding "su" + pwd I get a red # > > /path # > > ...as desired > > > > next I enter > > /home # mount /dev/sdb5 /0/sb05 > > mount: /0/sb05: special device /dev/sdb5 does not exist. > > ...which is fine, it being a dummy value > > > > next I hit the up-arrow to recall previous commands and up comes > > the last command > > /home # mount /dev/sdb5 /0/sb05 > > ...as it should > > > > and HERE comes my fubar, hitting the up arrow again for the next > > comand recall (cd /home) produces: > > /home # mount /devcd /home > > > > the curser has not slewed back to the prompt > > > > what did I screw up? > You did not properly terminate the escape sequences in the prompt with > a reset sequence. Try adding "\[\e[0m\]" to the end of the PS1 string. > > > -- > With respect, > = Aragorn = How would you believe me if you understand there's a possibility that Owl uses socks? That really does not cause you want to huff glue? This is the classic 'rule' by those calling themselves 'liberals', you must 'absolve' yourself, you are no longer presumed innocent, you're assumed guilty until you clear your name... a thing that isn't possible in this system. I am not going to pretend Dustin Cook didn't give me good advice with my choice of distro and I am thankful for it. Owl has Dustin Cook as an example and can learn to seem like he grew a brain from this day forward... but he fell on his face when he trolled Dustin Cook ;) This is what arises when seriously bad self confidence takes over Owl's psyche. Fool! Currently there are too many "let's attack Dustin Cook for no reason" AZ Cypher users and not enough programers with the patience to help the people with Macs. I am a complete fanboi of AZ Cypher, because that's where all the compelling breakthroughs are happening. -- Top 15 Ways Owl Trolls https://www.bing.com/search?q=dustin%20cook%20functionally%20illiterate%20fraud Dustin Cook is a functional illiterate fraud