apparently bash doesn't work like i thought it works