 Following his master's degree, he joined the faculty of Mathematics teaching undergraduate calculus courses but his parents were unsatisfied of their son being a scientists; therefore, encouraged by his parents, Shahi soon left his position after applying at the Indian Civil Service in 1944.He took the advanced exam, "All India Competitive Examinations", where he excelled and was commissioned in the civil service soon after.His first assignment was Sindh Province as a Commission of Education Department, and the family moved to Karachi, Sindh.