Re: UNIX commands: chmod

2006-03-26 Thread Mark Overmeer
* Gabor Szabo ([EMAIL PROTECTED]) [060325 09:58]: > So we had chmod in Perl5, I would like to make sure it works in > Perl6 as well with slight modifications. > > LIST = chmod MODE, LIST My feeling is that this function design is a bit of a mistake. Usually, one perl function maps on one operati

Re: UNIX commands: chmod

2006-03-26 Thread Gabor Szabo
On 3/26/06, Mark Overmeer <[EMAIL PROTECTED]> wrote: > > LIST = chmod MODE, LIST > > My feeling is that this function design is a bit of a mistake. Usually, > one perl function maps on one operating-system function, but in this case > it doesn't: it simulated the common chmod(1) user command. [..

Re: UNIX commands: chmod

2006-03-26 Thread Mark Overmeer
* Gabor Szabo ([EMAIL PROTECTED]) [060326 19:26]: > On 3/26/06, Mark Overmeer <[EMAIL PROTECTED]> wrote: > > > LIST = chmod MODE, LIST > > > > My feeling is that this function design is a bit of a mistake. Usually, > > one perl function maps on one operating-system function, but in this case > > i

Re: UNIX commands: chmod

2006-03-26 Thread Larry Wall
On Sat, Mar 25, 2006 at 01:22:18PM +0200, Gabor Szabo wrote: : On 3/25/06, Nicholas Clark <[EMAIL PROTECTED]> wrote: : > On Sat, Mar 25, 2006 at 12:58:30PM +0200, Gabor Szabo wrote: : > > 4) "filename".chmod(MODE) should also work and I guess : > > .chmod(MODE) should also work on those 3 file

Re: UNIX commands: chmod

2006-03-26 Thread Larry Wall
On Sun, Mar 26, 2006 at 02:40:03PM -0800, Larry Wall wrote: : On the original question, I see it more as a junctional issue. : Assuming we have only chmod($,$), this sould autothread: : : unless chmod MODE, all(@files) -> $oops { : ???; : profit(); : } Except that junctional l

Re: UNIX commands: chmod

2006-03-26 Thread Mark Overmeer
* Larry Wall ([EMAIL PROTECTED]) [060327 01:07]: > On Sun, Mar 26, 2006 at 02:40:03PM -0800, Larry Wall wrote: > : On the original question, I see it more as a junctional issue. > : Assuming we have only chmod($,$), this sould autothread: > : > : unless chmod MODE, all(@files) -> $oops { > :

Re: UNIX commands: chmod

2006-03-26 Thread Jonathan Lang
Mark Overmeer wrote: > * Larry Wall ([EMAIL PROTECTED]) [060327 01:07]: > > On Sun, Mar 26, 2006 at 02:40:03PM -0800, Larry Wall wrote: > > : On the original question, I see it more as a junctional issue. > > : Assuming we have only chmod($,$), this sould autothread: > > : > > : unless chmod MO