Re: Bash not escaping escape sequences in directory names

2022-01-24 Thread Chet Ramey
On 1/24/22 6:39 PM, Robert Elz wrote: they're a sop to csh users that Korn put in his shell to try and make it more attractive to csh users (of all the things to worry about, this was about the least important), and then which bash copied. That is not true. Bash introduced these. -- ``The

Re: Bash not escaping escape sequences in directory names

2022-01-24 Thread konsolebox
On Mon, Jan 24, 2022 at 11:40 PM Robert Elz wrote: > It was just that you replied to Andreas' message (the reply to my message) > but didn't include him in the list of recipients, just me & the list. Well I'm not sure what happened there. I'm using Gmail and I always click the "Reply to all" but

Re: Bash not escaping escape sequences in directory names

2022-01-24 Thread Robert Elz
Date:Mon, 24 Jan 2022 23:00:38 + From:konsolebox Message-ID: | It's meant to be a general reply to the thread. It was just that you replied to Andreas' message (the reply to my message) but didn't include him in the list of recipients, just me & the list.

Re: Bash not escaping escape sequences in directory names

2022-01-24 Thread konsolebox
On Tue, Jan 25, 2022, 06:24 Robert Elz, wrote: > Date:Tue, 25 Jan 2022 05:45:23 +0800 > From:konsolebox > Message-ID: < > cajnmqwbvrbdijqcu8+oo0gvic7onew8nkv4djfyy3o5eepm...@mail.gmail.com> > > | As for me whatever it is, it should be done consistently and with no

Re: Bash not escaping escape sequences in directory names

2022-01-24 Thread Robert Elz
Date:Tue, 25 Jan 2022 05:45:23 +0800 From:konsolebox Message-ID: | As for me whatever it is, it should be done consistently and with no | compromise. I have no idea why you decided to send this message to me (as well as the list), my message was entirely about

Re: Bash not escaping escape sequences in directory names

2022-01-24 Thread konsolebox
On Tue, Jan 25, 2022, 05:07 Andreas Kusalananda Kähäri, < andreas.kah...@abc.se> wrote: > On Tue, Jan 25, 2022 at 02:24:26AM +0700, Robert Elz wrote: > > Date:Mon, 24 Jan 2022 19:53:03 +0100 > > From:Andreas Kusalananda =?utf-8?B?S8OkaMOkcmk=?= < > andreas.kah...@abc.se> >

Re: Bash not escaping escape sequences in directory names

2022-01-24 Thread Andreas Kusalananda Kähäri
On Tue, Jan 25, 2022 at 02:24:26AM +0700, Robert Elz wrote: > Date:Mon, 24 Jan 2022 19:53:03 +0100 > From:Andreas Kusalananda =?utf-8?B?S8OkaMOkcmk=?= > > Message-ID: > > | Why would people want it to do that (i.e. export PS1)? > > It isn't exporting PS1 that's t

Re: Bash not escaping escape sequences in directory names

2022-01-24 Thread Greg Wooledge
On Mon, Jan 24, 2022 at 07:53:03PM +0100, Andreas Kusalananda Kähäri wrote: > I was honestly a bit surprised to see bash picking up PS1 from the > environment. Why would people want it to do that (i.e. export PS1)? It removes the need for bash to re-set it from .bashrc every time a new interactiv

Re: Bash not escaping escape sequences in directory names

2022-01-24 Thread Robert Elz
Date:Mon, 24 Jan 2022 19:53:03 +0100 From:Andreas Kusalananda =?utf-8?B?S8OkaMOkcmk=?= Message-ID: | Why would people want it to do that (i.e. export PS1)? It isn't exporting PS1 that's the issue, it is importing it. And that I rely on quite frequently. (Of c

Re: Bash not escaping escape sequences in directory names

2022-01-24 Thread Andreas Kusalananda Kähäri
On Mon, Jan 24, 2022 at 10:41:32AM -0500, Chet Ramey wrote: > On 1/22/22 3:48 PM, Andreas Kusalananda Kähäri wrote: > > On Sat, Jan 22, 2022 at 01:28:50PM -0500, Chet Ramey wrote: > > > On 1/22/22 5:52 AM, Andreas Kusalananda Kähäri wrote: > > > > On Fri, Jan 21, 2022 at 06:33:02PM -0500, Chet Rame

Re: Bash-5.2-alpha available

2022-01-24 Thread Robert Elz
Date:Mon, 24 Jan 2022 12:03:39 -0500 From:Chet Ramey Message-ID: <3aeb9d02-b134-216f-6d11-921e42941...@case.edu> | Except it's not unconditional. You have to accommodate ${x#$'value'} in | the here-document expansion path because "${x#$'value'}" is processed for

Re: Bash-5.2-alpha available

2022-01-24 Thread Chet Ramey
On 1/22/22 2:54 PM, Chet Ramey wrote: On 1/22/22 2:51 PM, Andreas Schwab wrote: On Jan 22 2022, Chet Ramey wrote: Because they should behave identically to other forms of quoting that bash handles in here-documents. Why should $'' be different from '' only within here-document bodies? $'' is

Re: Bash not escaping escape sequences in directory names

2022-01-24 Thread Chet Ramey
On 1/22/22 3:48 PM, Andreas Kusalananda Kähäri wrote: On Sat, Jan 22, 2022 at 01:28:50PM -0500, Chet Ramey wrote: On 1/22/22 5:52 AM, Andreas Kusalananda Kähäri wrote: On Fri, Jan 21, 2022 at 06:33:02PM -0500, Chet Ramey wrote: On 1/21/22 6:13 PM, Mike Jonkmans wrote: On Fri, Jan 21, 2022 at

Re: Bash not escaping escape sequences in directory names

2022-01-24 Thread Chet Ramey
On 1/23/22 6:33 PM, Josh Harcombe wrote: "user-controlled substitutions" was the wrong phrasing I guess, what I meant was I was wondering if this same sanitization principle should be applied to other things that could become part of your prompt while being controlled by someone else, (e.g. pote