Re: Default PS1

2021-03-29 Thread L A Walsh
On 2021/03/29 14:39, Greg Wooledge wrote: On Mon, Mar 29, 2021 at 01:49:41PM -0700, L A Walsh wrote: Or, what do you mean by 'default'? Is it sufficient to set it in the system /etc/profile so it is the default for all users when logging in? Sadly, that won't work. There are plenty o

Re: Default PS1

2021-03-29 Thread Greg Wooledge
On Mon, Mar 29, 2021 at 07:25:53PM -0700, L A Walsh wrote: > On 2021/03/29 14:39, Greg Wooledge wrote: > > On Mon, Mar 29, 2021 at 01:49:41PM -0700, L A Walsh wrote: > > > Or, what do you mean by 'default'? Is it sufficient > > > to set it in the system /etc/profile so it is the default > > > for

Re: Default PS1

2021-03-29 Thread Christopher Dimech
xploration and Production - Free Software Advocacy > Sent: Tuesday, March 30, 2021 at 8:49 AM > From: "L A Walsh" > To: "ილია ჩაჩანიძე" > Cc: bug-bash@gnu.org > Subject: Re: Default PS1 > > On 2021/03/29 04:04, ილია ჩაჩანიძე wrote: >

Re: Default PS1

2021-03-29 Thread Greg Wooledge
On Mon, Mar 29, 2021 at 01:49:41PM -0700, L A Walsh wrote: > Or, what do you mean by 'default'? Is it sufficient > to set it in the system /etc/profile so it is the default > for all users when logging in? Sadly, that won't work. There are plenty of *extremely* common paths from power-on to shel

Re: Default PS1

2021-03-29 Thread L A Walsh
On 2021/03/29 04:04, ილია ჩაჩანიძე wrote: How can I set default PS1 variable from source code? --- What do you mean "from source code?" E.g I want it to display: My-linux-distro $ And not: Bash-5.1 $ --- Does the procedure documented in the bash man page not work? Or, w

Re: Default PS1

2021-03-29 Thread Greg Wooledge
On Mon, Mar 29, 2021 at 01:42:10PM +0100, Chris Elvidge wrote: > On 29/03/2021 12:04 pm, ილია ჩაჩანიძე wrote: > > How can I set default PS1 variable from source code? > > E.g I want it to display: > > My-linux-distro $ > > And not: > > Bash-5.1 $ > > >

Re: Default PS1

2021-03-29 Thread Chris Elvidge
On 29/03/2021 12:04 pm, ილია ჩაჩანიძე wrote: How can I set default PS1 variable from source code? E.g I want it to display: My-linux-distro $ And not: Bash-5.1 $ Set it in $HOME/.bashrc -- Chris Elvidge England

Default PS1

2021-03-29 Thread ილია ჩაჩანიძე
How can I set default PS1 variable from source code? E.g I want it to display: My-linux-distro $ And not: Bash-5.1 $

Re: default PS1 is not POSIX-compliant?

2017-03-03 Thread Chet Ramey
On 3/3/17 10:31 AM, Eric Blake wrote: > Chet, can you weigh in on http://austingroupbugs.net/view.php?id=1038 ? > There is a question of whether bash's choice of setting PS1='\s-\v\$ ' > is correct in --posix mode, or whether it should be merely PS1='\$ ' > when started in sh mode. Allowing more t

default PS1 is not POSIX-compliant?

2017-03-03 Thread Eric Blake
Chet, can you weigh in on http://austingroupbugs.net/view.php?id=1038 ? There is a question of whether bash's choice of setting PS1='\s-\v\$ ' is correct in --posix mode, or whether it should be merely PS1='\$ ' when started in sh mode. Allowing more than just the dollar (or hash for root) and spa