From: Brian Candler Date: 2007-04-26T03:41:20+09:00 Subject: Re: Is it possible to make system use bash instead of sh? On Thu, Apr 26, 2007 at 12:18:04AM +0900, Wai Tsang wrote: > Does anyone know if it is possible to use bash instead of sh as the > default shell when "system" is executed? system() with multiple arguments bypasses the shell. So try: system("/bin/bash", "-c", "java --version")