Made shell work again. Yes, this is *very* rough and ready, but it's sufficient for now.