[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: Why busybox ash do not support $[ ] for math?
From: Ron Yorston <rmy () pobox ! com>
Date: 2021-07-18 7:27:32
Message-ID: 60f3d7e4.U3zpNhAhNLEFZgB9%rmy () pobox ! com
[Download RAW message or body]
Roberto A. Foglietta wrote:
> why busybox ash do not support $[ ] for math?
> Possibly because original ash does not support it but bash only?
> Have you ever thought about adding this feature or $(( )) is enough?
The $[...] form of arithmetic expansion has been deprecated since
bash 2.0. It isn't mentioned in the current reference manual and
the Bash Hackers Wiki recommends not using it.
Only the $((...)) form is supported in POSIX.
All things considered, $[...] doesn't seem to be a very attractive
candidate for inclusion in BusyBox ash.
Ron
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic