Heat oil in pan and fry onion for 2 minutes. Add ginger, garlic, red pepper, tumeric, salt and sugar. Fry 1 minute. Add squash and fry for 1 minute. Add water, cover and cook until squash is tender about 15 minutes. Add tamarind liquid and fry until liquid has evaporated. Serve with rice.