mksh arithmetic doesn't support bash **

Bug #1679426 reported by Elliott Hughes on 2017-04-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mksh
Wishlist
Unassigned

Bug Description

mksh R54 (built from source) doesn't support bash-style $((3**4)). all the other arithmetic operators appear to be there.

Thorsten Glaser (mirabilos) wrote :

Not a bug: There is no “**” in POSIX shell or C either.

In general, the usefulness of this operator is rather limited in the scope of shell arithmetics (either mksh or POSIX), but I’ll keep this open as a wishlist item in case someone is bored or something. (No -lm allowed.)

Changed in mksh:
importance: Undecided → Wishlist
Elliott Hughes (enh-9) wrote :

yeah, i don't have a use for this. (spotted it running a test.) just wanted to file this difference from bash for reference.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers