Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
icebraining
on July 1, 2017
|
parent
|
context
|
favorite
| on:
Cicada – Unix shell written in Rust
$ echo $((1 + 2 * 3 - 4)) 3
vbernat
on July 1, 2017
[–]
With zsh, you can even save a few keystrokes.
function c() { echo $(($@)) } alias c='noglob c'
jplatte
on July 2, 2017
|
parent
[–]
zsh can handle floating point arithmetic too, while bash can't.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: