Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #270423

Re: About dash as sh

From Jeffrey Walton <noloader@gmail.com>
Newsgroups linux.debian.user
Subject Re: About dash as sh
Date 2024-06-24 08:40 +0200
Message-ID <ISLwR-59Sy-1@gated-at.bofh.it> (permalink)
References (1 earlier) <IRJx7-4u74-5@gated-at.bofh.it> <IRKCR-4uPg-1@gated-at.bofh.it> <IRKWe-4uW5-9@gated-at.bofh.it> <IRVRD-4BXS-1@gated-at.bofh.it> <ISLdv-59LY-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jun 24, 2024 at 2:16 AM Nicolas George <george@nsup.org> 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 at your
> own risk” sound more scary, I do not think it is a severe problem.

Do shells suffer UB? I always thought that was a C thing.

When I encounter UB in C, I drop into inline assembler since asm does
not suffer C's undefined behavior.

Jeff

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

About dash as sh Ilya Kazakevich <ilya.kazakevich@jetbrains.com> - 2024-06-21 00:30 +0200
  Re: About dash as sh Mike Castle <dalgoda+debian@gmail.com> - 2024-06-21 09:00 +0200
  Re: About dash as sh Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-06-21 12:20 +0200
    Re: About dash as sh Greg Wooledge <greg@wooledge.org> - 2024-06-21 13:30 +0200
      Re: About dash as sh Nicolas George <george@nsup.org> - 2024-06-21 13:50 +0200
        Re: About dash as sh Greg Wooledge <greg@wooledge.org> - 2024-06-21 14:00 +0200
          Re: About dash as sh Mike Castle <dalgoda+debian@gmail.com> - 2024-06-21 18:50 +0200
            Re: About dash as sh Greg Wooledge <greg@wooledge.org> - 2024-06-21 19:20 +0200
        Re: About dash as sh Stefan Monnier <monnier@iro.umontreal.ca> - 2024-06-22 01:30 +0200
          Re: About dash as sh Nicolas George <george@nsup.org> - 2024-06-24 08:20 +0200
            Re: About dash as sh Jeffrey Walton <noloader@gmail.com> - 2024-06-24 08:40 +0200
              [OFFTOPIC] Re: About dash as sh Stefan Monnier <monnier@iro.umontreal.ca> - 2024-06-24 15:00 +0200
  Re: About dash as sh Ilya Kazakevich <ilya.kazakevich@jetbrains.com> - 2024-06-26 20:20 +0200
    Re: About dash as sh Max Nikulin <manikulin@gmail.com> - 2024-06-28 05:00 +0200

csiph-web