All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steffen Nurpmeso <steffen@sdaoden.eu>
To: DASH shell mailing list <dash@vger.kernel.org>,
	Robert Elz <kre@munnari.OZ.AU>
Subject: Re: $(()) pre/postfix bug
Date: Sat, 02 Jul 2022 01:36:44 +0200	[thread overview]
Message-ID: <20220701233644.ZGiHI%steffen@sdaoden.eu> (raw)
In-Reply-To: <20220701231439.egWzS%steffen@sdaoden.eu>

Steffen Nurpmeso wrote in
 <20220701231439.egWzS%steffen@sdaoden.eu>:
 ..
 |While doing so i encountered diverging behaviour in between
 |shells, and a bug in dash (and a memory failure in NetBSD 9 ksh).

Nonsense.  dash simply does not support pre/postfix operators.
Sorry for the noise.

  ...
 |NetBSD n-0900 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC \
 |2020  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC \
 |amd64
 |
 |#?0|n-0900:steffen$ ksh -c '(i=10; echo $((++-+++i)))'
 |Memory fault
 ...

Ok, maybe a bug report over there.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

  reply	other threads:[~2022-07-01 23:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-01 23:14 $(()) pre/postfix bug Steffen Nurpmeso
2022-07-01 23:36 ` Steffen Nurpmeso [this message]
2022-07-02  0:28 ` Robert Elz
2022-07-02  8:20   ` Harald van Dijk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220701233644.ZGiHI%steffen@sdaoden.eu \
    --to=steffen@sdaoden.eu \
    --cc=dash@vger.kernel.org \
    --cc=kre@munnari.OZ.AU \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.