Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-06 Thread Blair Sutton
lt;> > To: > Sent: Friday, June 06, 2008 4:16 AM > Subject: Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe > and CMD.exe > > > | On further investigation, it appears powershell does alias "-c" for > | "-command" hence no changes w

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-06 Thread Linda Walsh
Christopher Faylor wrote: Mr. Vixie rightly assumed that cron was running in a UNIX-like environment where shells take the "-c" option. Ditto the authors of "make", "vim", and other packages which use the SHELL environment variable. Can we please put this to rest now? 012345678901234567890123

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-06 Thread Pierre A. Humblet
- Original Message - From: "Blair Sutton" <> To: Sent: Friday, June 06, 2008 4:16 AM Subject: Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe | On further investigation, it appears powershell does alias "-c" for | "-com

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-06 Thread Christopher Faylor
On Fri, Jun 06, 2008 at 09:16:41AM +0100, Blair Sutton wrote: >On further investigation, it appears powershell does alias "-c" for >"-command" hence no changes would be required for cron to support it. >However, the change would still be useful for other shells or perhaps >interpreters like Perl. >

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-06 Thread Blair Sutton
;Blair Sutton" <> >> To: >> Sent: Wednesday, June 04, 2008 12:48 PM >> Subject: Patch to allow Cron to use non-POSIX shells like Powershell.exe and >> CMD.exe >> >> >> | Hi >> | >> | This is a very simple patch for Cron to allow one to

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Linda Walsh
Christopher Faylor wrote: Cygwin endeavors to present an environment where shells understand "-c" rather than "/c". I did not look at the change. My initial gut reaction on that change was...no way..."/" is a path character, and it's because Bill Gates wanted to look different fro

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Christopher Faylor
On Thu, Jun 05, 2008 at 12:47:42PM -0700, Linda Walsh wrote: > Blair Sutton wrote: >> Eric Blake <[EMAIL PROTECTED]> writes: >>>Why should we patch a cygwin utility to promote the use of a non-cygwin >>>shell? > >None of the shells are 'cygwin', really, -- they are shells that took >their ideas fro

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Christopher Faylor
On Thu, Jun 05, 2008 at 06:43:25PM -0400, Mark J. Reed wrote: >The sh process is not "extra" since it's replaced by the powershell >process, right? Unless "exec" works differently in Cygwin, which is >entirely possible Nope, you're right. It is replaced as long as it isn't the top-level cygwi

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Mark J. Reed
sage - >> From: "Blair Sutton" <> >> To: >> Sent: Wednesday, June 04, 2008 12:48 PM >> Subject: Patch to allow Cron to use non-POSIX shells like Powershell.exe >> and >> CMD.exe >> >> >> | Hi >> | >> | This

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Blair Sutton
ther people may find it useful. Best regards Blair On 6/5/08, Pierre A. Humblet <[EMAIL PROTECTED]> wrote: > - Original Message - > From: "Blair Sutton" <> > To: > Sent: Wednesday, June 04, 2008 12:48 PM > Subject: Patch to allow Cron to use non-

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Pierre A. Humblet
- Original Message - From: "Blair Sutton" <> To: Sent: Wednesday, June 04, 2008 12:48 PM Subject: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe | Hi | | This is a very simple patch for Cron to allow one to use a shell like | powershell o

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Linda Walsh
Blair Sutton wrote: Eric Blake <[EMAIL PROTECTED]> writes: Why should we patch a cygwin utility to promote the use of a non-cygwin shell? --- None of the shells are 'cygwin', really, -- they are shells that took their ideas from close-source Bell-Labs research. But before they became

Re: Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-05 Thread Blair Sutton
Eric Blake <[EMAIL PROTECTED]> writes: > Why should we patch a cygwin utility to promote the use of a non-cygwin shell? To increase/improve productivity. To move along with the times. No one can argue that Powershell isn't a good shell taking some of the best features of many popular shells befo

Re: Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-04 Thread Eric Blake
Blair Sutton googlemail.com> writes: > > I simply introduce a new environment variable called SHELLSWICTH that > defaults to "-c" if not used. Otherwise, one can set it to "/c" or > "-Command" for Windows shells. Why should we patch a cygwin utility to promote the use of a non-cygwin shell? >

Patch to allow Cron to use non-POSIX shells like Powershell.exe and CMD.exe

2008-06-04 Thread Blair Sutton
Hi This is a very simple patch for Cron to allow one to use a shell like powershell or cmd. I've done some testing and it appears to work well. I simply introduce a new environment variable called SHELLSWICTH that defaults to "-c" if not used. Otherwise, one can set it to "/c" or "-Command" for W