4 ms·
> $ 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
by kbd 3y ago
> $ 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?
- poetaster 3y agohmmmm. bash worked for me as was ?
- Aachen 3y agoOmitted for simplicity
- JNRowe 3y agoWith zsh you can call it with the noglob builtin¹, that way it doesn't try to parse the bracketed section as a globbing pattern; if that works for you, then you can simply "alias qalc='noglob qalc'" for future use. ¹ https://zsh.sourceforge.io/Doc/Release/Shell-Grammar.html#Precommand-Modifiers https://zsh.sourceforge.io/Doc/Release/Shell-Grammar.html#Pr...
- kbd 3y ago$ 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!