Re: About dash as sh

2024-06-27 Thread Max Nikulin
On 27/06/2024 01:16, Ilya Kazakevich wrote: My intention was to understand if decisions about dash are still valid, not to tell Debian to switch back to bash of course. I am almost sure there are lengthy threads on Ubuntu and Debian mailing lists. Perhaps summaries are deeply buried. I was

Re: About dash as sh

2024-06-26 Thread Ilya Kazakevich
Hello, Thank you for your answers. My intention was to understand if decisions about dash are still valid, not to tell Debian to switch back to bash of course. Speaking about "bug or not": This bug was confirmed by author: https://lore.kernel.org/dash/zm5y3du0c2mhd...@gondor.apana.org.au/ And

[OFFTOPIC] Re: About dash as sh

2024-06-24 Thread Stefan Monnier
> Do shells suffer UB? I always thought that was a C thing. UB is a standard concept when defining programming languages. Most if not all programming languages have some form of UB or another in some part of the spec. C is special w.r.t to UB in two ways: - UB is not relegated to corner cases

Re: About dash as sh

2024-06-24 Thread Jeffrey Walton
On Mon, Jun 24, 2024 at 2:16 AM Nicolas George wrote: > > Stefan Monnier (12024-06-21): > > And if it's not a tty, you get some kind of Undefined Behavior? > > Knowing that “undefined behavior” is just an expression invented by C > standards authors to make “we make no guarantee about it, use it

Re: About dash as sh

2024-06-24 Thread Nicolas George
Stefan Monnier (12024-06-21): > And if it's not a tty, you get some kind of Undefined Behavior? Knowing that “undefined behavior” is just an expression invented by C standards authors to make “we make no guarantee about it, use it at your own risk” sound more scary, I do not think it is a severe

Re: About dash as sh

2024-06-21 Thread Stefan Monnier
> When the shell is using standard input and it invokes a command that > also uses standard input, the shell shall ensure that the standard > input file pointer points directly after the command it has read when > the command begins execution. > > But I consider this clause is misguided,

Re: About dash as sh

2024-06-21 Thread Greg Wooledge
On Fri, Jun 21, 2024 at 09:43:52 -0700, Mike Castle wrote: > On Fri, Jun 21, 2024 at 4:57 AM Greg Wooledge wrote: > > That's why I find it frustrating when someone claims that this bug is > > so severe that Debian has to *change their policy* without even describing > > how this bug is affecting

Re: About dash as sh

2024-06-21 Thread Mike Castle
On Fri, Jun 21, 2024 at 4:57 AM Greg Wooledge wrote: > That's why I find it frustrating when someone claims that this bug is > so severe that Debian has to *change their policy* without even describing > how this bug is affecting them in real life. I did not feel like the OP was saying the bug

Re: About dash as sh

2024-06-21 Thread Greg Wooledge
On Fri, Jun 21, 2024 at 13:44:35 +0200, Nicolas George wrote: > Greg Wooledge (12024-06-21): > > The original message began with the assertion that the OP had run > > across a bug in dash, and gave two URLs, with no description of the bug > > or the impact it was having on their life. > > > > I

Re: About dash as sh

2024-06-21 Thread Nicolas George
Greg Wooledge (12024-06-21): > The original message began with the assertion that the OP had run > across a bug in dash, and gave two URLs, with no description of the bug > or the impact it was having on their life. > > I read one of the URLs, and the bug is rather obscure. It involves a >

Re: About dash as sh

2024-06-21 Thread Greg Wooledge
The original message began with the assertion that the OP had run across a bug in dash, and gave two URLs, with no description of the bug or the impact it was having on their life. I read one of the URLs, and the bug is rather obscure. It involves a second script embedded inside a here document

Re: About dash as sh

2024-06-21 Thread Michael Kjörling
On 21 Jun 2024 00:28 +0200, from ilya.kazakev...@jetbrains.com (Ilya Kazakevich): > [...] honestly, I can't imagine how bash > could be a bottleneck for anything in 2024 (if you have such > scenarios, please share). Debian doesn't target only desktops and servers, where your assertion is quite

Re: About dash as sh

2024-06-21 Thread Mike Castle
bash is still 10x larger than dash: $ ls -l /bin/[bd]ash -rwxr-xr-x 1 root root 1265648 Apr 23 2023 /bin/bash -rwxr-xr-x 1 root root 125640 Jan 5 2023 /bin/dash I would not be surprised if that impacts things like initrd and other resource constrained environments. Generally speaking,

About dash as sh

2024-06-20 Thread Ilya Kazakevich
Hello, I've recently come across a bug in dash. https://lore.kernel.org/dash/CAMQsgbSZnEac=ETYnR6a_ysnAysaHThwY03pnoDxC=p5fqt...@mail.gmail.com/T This issue is known for 7 years: https://groups.google.com/g/linux.debian.bugs.dist/c/c6kRE-fhyuM Fix is 18 months old, but unfortunately not