3 ms·
With 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
by JNRowe 3y ago
With 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!