> $ qalc 10W(8h/day)1year to kWh
Question: why didn't you need quotes around the first expression? Both Zsh and Bash error on that command without quotes. Are you using nushell?
Question: why didn't you need quotes around the first expression? Both Zsh and Bash error on that command without quotes. Are you using nushell?
¹ https://zsh.sourceforge.io/Doc/Release/Shell-Grammar.html#Pr...
$ qalc 10W*(8h/day)*1year to kWh
zsh: bad pattern: 10W*(8h/day)*1year
$:1 noglob qalc 10W*(8h/day)*1year to kWh
(10 watts) × (8 hours/day) × (1 year) = 29.22 kW·h
Amazing. I use qalc frequently and you just improved my life, thank you!