Add f function to bash_compat.