dotfiles/.config/shell/bin/calc

8 lines
166 B
Bash
Executable file

#!/bin/zsh
# Basic calculator using the shell
# Note that zsh can handle floating-point math, whereas POSIX sh cannot
for v; do
printf ' %s ' "$(($v))"
done
echo