For math functions to be defined in bc
, you need to specify the -l
option. Otherwise, bc
will tell you that functions like l
are not defined.
So it has nothing to do with the alias. I have no idea how it works with tcsh
-- it doesn't on my (ubuntu) system. Although including the -l
, even through the alias -- as in semitone -l
-- works fine both with bash
and tcsh