Update sh.cpp