News for hackers. Stuff that matters.
Re:Cicada – Unix shell written in Rust by city41 on Saturday July 01, 2017 @02:45AM (#14675757)
Being able to do arithmetic right in the shell is handy.
Re:Cicada – Unix shell written in Rust by icebraining on Saturday July 01, 2017 @03:20AM (#14675850)

  $ echo $((1 + 2 * 3 - 4))
  3
Re:Cicada – Unix shell written in Rust by vbernat on Saturday July 01, 2017 @03:26AM (#14675874)
With zsh, you can even save a few keystrokes.

  function c() {
    echo $(($@))
  }
  alias c='noglob c'
Re:Cicada – Unix shell written in Rust by jplatte on Sunday July 02, 2017 @11:06AM (#14682802)
zsh can handle floating point arithmetic too, while bash can't.
Re:Cicada – Unix shell written in Rust by tyingq on Saturday July 01, 2017 @08:38AM (#14676843)
They way they chose to do it though seems to create some ambiguity. Like, what does this do? I can think of 3 distinctly different things it could do.

$ echo test 1 + 2>err

Or what if there are files with these names?

$ cp /bin/grep 42

$ 42 + 1