Fergus' bash foo