os.environ conflicts with my shell

Grant Edwards grant at nowhere.
Wed Mar 29 15:55:44 EST 2000


In article <20000329182414.B13073 at xs4all.nl>, Thomas Wouters wrote:

>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 ;)

Nah, can't blame it on Pxxl that's the standard C library
semantics for system():

SYSTEM(3)           Linux Programmer's Manual           SYSTEM(3)

NAME
       system - execute a shell command

SYNOPSIS
       #include <stdlib.h>

       int system (const char * string);

DESCRIPTION
       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.

-- 
Grant Edwards                   grante             Yow!  GOOD-NIGHT,
                                  at               everybody... Now I have to
                               visi.com            go administer FIRST-AID to
                                                   mypet LEISURE SUIT!!



More information about the Python-list mailing list