dotfiles/.config/shell/bin/calc

6 lines
179 B
Bash
Executable file

#!/bin/zsh
# Note: this is compatible with `sh`, but because
# `sh` does not handle floats, I'm choosing `zsh`.
# Believe it or not, zsh makes for a fine calculator
echo $(($*))