Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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#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!




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: