dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: "Vladimir N. Oleynik" <dzo@simtreas.ru>
Cc: dash@vger.kernel.org
Subject: Re: [PATCH]: allow recursive variable inderection in arith
Date: Fri, 5 Apr 2024 16:37:59 +0800	[thread overview]
Message-ID: <Zg+4Z9R7bT1nYoGf@gondor.apana.org.au> (raw)
In-Reply-To: <ecf90382-e5b9-9b0c-c73b-c564a660ee20@simtreas.ru>

On Sun, Jan 31, 2021 at 01:29:36PM +0400, Vladimir N. Oleynik wrote:
> 
> My patch for allow recursive variable inderection in arith
> and simplify allow $(( )). Originaly from my arith in busybox
> 
> Before patch:
> $ a=b b=2; echo $((a))
> dash: 1: Illegal number: b
> 
> After patch:
> $ a=b b=2; echo $((a))
> 2
> a=b b="a*2"; echo $((a))
> ./dash: 4: arithmetic expression: expression recursion loop detected: "a"

Again this does not belong in dash because one of the principal
goals is to be minimal.

Thanks,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

  reply	other threads:[~2024-04-05  8:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-29 19:49 [PATCH]: allow $(()) Vladimir N. Oleynik
2021-01-31  9:29 ` [PATCH]: allow recursive variable inderection in arith Vladimir N. Oleynik
2024-04-05  8:37   ` Herbert Xu [this message]
2024-04-05  8:36 ` [PATCH]: allow $(()) Herbert Xu

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=Zg+4Z9R7bT1nYoGf@gondor.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=dash@vger.kernel.org \
    --cc=dzo@simtreas.ru \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).