BUG: use bash variable in bas, not ruby