Support list and tuple as `sh` argument.