Re: [E-devel] Ecore_exe and shell metacharachters

2006-04-05 Thread David Seikel
On Thu, 6 Apr 2006 08:48:42 +0900 Carsten Haitzler (The Rasterman) <[EMAIL PROTECTED]> wrote: > starters. the solution might be to provide an escaper that lets you > build a comamndline - maybe an ecore_exe_snprintf() that has a %E > (thats used by printf - but you get the idea), OR maybe a simple

Re: [E-devel] Ecore_exe and shell metacharachters

2006-04-05 Thread David Seikel
On Thu, 6 Apr 2006 08:41:26 +0900 Carsten Haitzler (The Rasterman) <[EMAIL PROTECTED]> wrote: > On Wed, 05 Apr 2006 12:24:37 -0400 Mike Russo <[EMAIL PROTECTED]> > babbled: > > > Ecore_exe will try to avoid using "sh -c" to execute a program if > > it can. If the command line contains shell meta

Re: [E-devel] Ecore_exe and shell metacharachters

2006-04-05 Thread The Rasterman
On Thu, 6 Apr 2006 03:38:20 +1000 David Seikel <[EMAIL PROTECTED]> babbled: > On Wed, 05 Apr 2006 12:24:37 -0400 Mike Russo <[EMAIL PROTECTED]> wrote: > > > Ecore_exe will try to avoid using "sh -c" to execute a program if it > > can. If the command line contains shell meta characters (defined

Re: [E-devel] Ecore_exe and shell metacharachters

2006-04-05 Thread The Rasterman
On Wed, 05 Apr 2006 12:24:37 -0400 Mike Russo <[EMAIL PROTECTED]> babbled: > Ecore_exe will try to avoid using "sh -c" to execute a program if it > can. If the command line contains shell meta characters (defined as any > combination of |&;<>$'\"'*?#) it will use the user's shell to execute >

Re: [E-devel] Ecore_exe and shell metacharachters

2006-04-05 Thread Ramkumar R
> On the other hand, I can see that allowing programs to ask ecore_exe > to use /bin/sh instead of whatever shell the user prefers to use would > be a good idea. +1. This is what system in the standard C library does as well. This way, we can assure the client that we would be executing using the

Re: [E-devel] Ecore_exe and shell metacharachters

2006-04-05 Thread David Seikel
On Wed, 05 Apr 2006 12:24:37 -0400 Mike Russo <[EMAIL PROTECTED]> wrote: > Ecore_exe will try to avoid using "sh -c" to execute a program if it > can. If the command line contains shell meta characters (defined as > any combination of |&;<>$'\"'*?#) it will use the user's shell to > execute the

[E-devel] Ecore_exe and shell metacharachters

2006-04-05 Thread Mike Russo
Ecore_exe will try to avoid using "sh -c" to execute a program if it can. If the command line contains shell meta characters (defined as any combination of |&;<>$'\"'*?#) it will use the user's shell to execute the command, otherwise it will execute it directly. Unfortunately this causes a pr

Re: [E-devel] Ecore_exe and shell metacharachters

2006-04-05 Thread David Seikel
On Wed, 05 Apr 2006 12:24:37 -0400 Mike Russo <[EMAIL PROTECTED]> wrote: > Ecore_exe will try to avoid using "sh -c" to execute a program if it > can. If the command line contains shell meta characters (defined as > any combination of |&;<>$'\"'*?#) it will use the user's shell to > execute the