bash f function fix