os.environ conflicts with my shell

Thomas Wouters thomas at xs4all.net
Wed Mar 29 18:24:14 CEST 2000

On Wed, Mar 29, 2000 at 01:31:41PM +0100, Michael Hudson wrote:
> > Actually, that wont work if zsh is the shell started by os.system()

> But it's not; man system says

>        system() executes a command specified in string by calling
>        /bin/sh -c string, and returns after the command has  been
>        completed.   During execution of the command, SIGCHLD will
>        be blocked, and SIGINT and SIGQUIT will be ignored.

Oops. I stand corrected. For some reason I thought the system() library call
would only spawn a shell if the command to execute contained shell
metachars, but it doesn't. Must be a leftover from that-other-P-language ;)

Thomas Wouters <thomas at xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!

More information about the Python-list mailing list