Re: rewrite scripts to Perl

2012-02-27 Thread SJS
begin quoting Martin Dietze as of Sat, Feb 25, 2012 at 12:46:49AM +0100: [snip] > And honestly, having written several thousands of LOCs in Bourne > Shell, bash and Perl I simply cannot agree that Perl code is in > general easier to understand and maintain (actually, I've seen > much more write-on

Re: rewrite scripts to Perl

2012-02-24 Thread Martin Dietze
On Fri, February 24, 2012, Brad Jorsch wrote: > Every system will have a bourne-compatible shell installed as /bin/sh, > or MANY things will break. Does wmaker.inst have bashisms, or is all > this talk about bash not entirely accurate? There are no bashisms in that script. The code is fairly port

Re: rewrite scripts to Perl

2012-02-24 Thread jaqque
Carlos R. Mafra wrote: > > I have my GNUstep folder since more than 12 years now. Having a script > checking whether it exists or not everytime I start wmaker is not > something I would want to have. The overhead may be negligible, but > I don't want to have one like this. So long as there is an

Re: rewrite scripts to Perl

2012-02-24 Thread John H. Robinson, IV
Brad Jorsch wrote: > > Every system will have a bourne-compatible shell installed as /bin/sh, > or MANY things will break. Does wmaker.inst have bashisms, or is all > this talk about bash not entirely accurate? According to my wmaker.inst, it is #!/bin/sh and my /bin/sh is a symlink to dash. IMH

Re: rewrite scripts to Perl

2012-02-24 Thread Brad Jorsch
On Fri, Feb 24, 2012 at 11:48:26AM +0100, Kamil Rytarowski wrote: > On 24.02.2012 10:36, Paul Harris wrote: > > > >Not every system has Perl installed. > >Do you really want to have wmaker depend on Perl ? > > > I can say, that not every system has BASH. Every system will have a bourne-compatible

Re: rewrite scripts to Perl

2012-02-24 Thread Kamil Rytarowski
On 24.02.2012 12:31, Brian Tomlinson wrote: On Fri, Feb 24, 2012 at 2:52 AM, Kamil Rytarowski > wrote: On 24.02.2012 11 :48, Kamil Rytarowski wrote: > I disagree. For simple, file system centric tasks, shell scripts > are just the technology of choice. I

Re: rewrite scripts to Perl

2012-02-24 Thread Rodolfo García Peñas
On Fri, 24 Feb 2012, Kamil Rytarowski escribió: > On 24.02.2012 10:19, Carlos R. Mafra wrote: > >On Fri, 24 Feb 2012 at 10:35:53 +0200, Rodolfo kix Garcia wrote: > >>In debian, the /usr/bin/wmaker is an script. This script checks if > >>the user has the GNUstep folder. If the folder exists, then l

Re: rewrite scripts to Perl

2012-02-24 Thread Kamil Rytarowski
On 24.02.2012 10:19, Carlos R. Mafra wrote: On Fri, 24 Feb 2012 at 10:35:53 +0200, Rodolfo kix Garcia wrote: In debian, the /usr/bin/wmaker is an script. This script checks if the user has the GNUstep folder. If the folder exists, then launch /usr/share/WindowMaker/wmaker (binary), else, copy th

Re: rewrite scripts to Perl

2012-02-24 Thread Brian Tomlinson
On Fri, Feb 24, 2012 at 2:52 AM, Kamil Rytarowski wrote: > On 24.02.2012 11:48, Kamil Rytarowski wrote: > > > > I disagree. For simple, file system centric tasks, shell scripts > > are just the technology of choice. > > I agree that it's used for simple tasks to execute things, but I disagree >

Re: rewrite scripts to Perl

2012-02-24 Thread Kamil Rytarowski
On 24.02.2012 11:48, Kamil Rytarowski wrote: > I disagree. For simple, file system centric tasks, shell scripts > are just the technology of choice. I agree that it's used for simple tasks to execute things, but I disagree about centric tasks. It's in use o For example it's in use in Udev h

Re: rewrite scripts to Perl

2012-02-24 Thread Kamil Rytarowski
On 24.02.2012 10:36, Paul Harris wrote: On 24 February 2012 17:28, Kamil Rytarowski > wrote: On 24.02.2012 09:19, Martin Dietze wrote: On Fri, February 24, 2012, Kamil Rytarowski wrote: Is possible to propose a patch rewritting wm scripts (like

Re: rewrite scripts to Perl

2012-02-24 Thread Rodolfo García Peñas
On Fri, 24 Feb 2012, Martin Dietze escribió: > On Fri, February 24, 2012, Carlos R. Mafra wrote: > > > There is no deep reason for doing it. Just leave the good old > > bash script alone and let's not depend on Perl. > > +1 +1 git log util/wmaker.inst.in don't show changes related to maintain

Re: rewrite scripts to Perl

2012-02-24 Thread Martin Dietze
On Fri, February 24, 2012, Carlos R. Mafra wrote: > There is no deep reason for doing it. Just leave the good old > bash script alone and let's not depend on Perl. +1 M'bert -- --- / http://herbert.the-little-red-haired-girl.org / - =+= Warum geht ein Bratscher nicht �ber

Re: rewrite scripts to Perl

2012-02-24 Thread Cyril LAVIER
Le 24.02.2012 10:36, Paul Harris a écrit : On 24 February 2012 17:28, Kamil Rytarowski wrote: On 24.02.2012 09:19, Martin Dietze wrote: On Fri, February 24, 2012, Kamil Rytarowski wrote: Is possible to propose a patch rewritting wm scripts (like wmaker.inst) from BASH to Perl? Possible? C

Re: rewrite scripts to Perl

2012-02-24 Thread Carlos R. Mafra
On Fri, 24 Feb 2012 at 10:28:53 +0100, Kamil Rytarowski wrote: > On 24.02.2012 09:19, Martin Dietze wrote: > >On Fri, February 24, 2012, Kamil Rytarowski wrote: > > > >>Is possible to propose a patch rewritting wm scripts (like wmaker.inst) > >>from BASH to Perl? > >Possible? Certainly. > OK, I wil

Re: rewrite scripts to Perl

2012-02-24 Thread Rodolfo kix Garcia
On Fri, 24 Feb 2012 09:19:49 +, Carlos R. Mafra wrote: On Fri, 24 Feb 2012 at 10:35:53 +0200, Rodolfo kix Garcia wrote: In debian, the /usr/bin/wmaker is an script. This script checks if the user has the GNUstep folder. If the folder exists, then launch /usr/share/WindowMaker/wmaker (binary

Re: rewrite scripts to Perl

2012-02-24 Thread Paul Harris
On 24 February 2012 17:28, Kamil Rytarowski wrote: > On 24.02.2012 09:19, Martin Dietze wrote: > >> On Fri, February 24, 2012, Kamil Rytarowski wrote: >> >> Is possible to propose a patch rewritting wm scripts (like wmaker.inst) >>> from BASH to Perl? >>> >> Possible? Certainly. >> > OK, I will

Re: rewrite scripts to Perl

2012-02-24 Thread Kamil Rytarowski
On 24.02.2012 09:19, Martin Dietze wrote: On Fri, February 24, 2012, Kamil Rytarowski wrote: Is possible to propose a patch rewritting wm scripts (like wmaker.inst) from BASH to Perl? Possible? Certainly. OK, I will rewrite it and then we can compare. -- To unsubscribe, send mail to wmaker-

Re: rewrite scripts to Perl

2012-02-24 Thread Carlos R. Mafra
On Fri, 24 Feb 2012 at 10:35:53 +0200, Rodolfo kix Garcia wrote: > > In debian, the /usr/bin/wmaker is an script. This script checks if > the user has the GNUstep folder. If the folder exists, then launch > /usr/share/WindowMaker/wmaker (binary), else, copy the GNUstep > default files and then lau

Re: rewrite scripts to Perl

2012-02-24 Thread Carlos R. Mafra
On Fri, 24 Feb 2012 at 9:19:42 +0100, Martin Dietze wrote: > On Fri, February 24, 2012, Kamil Rytarowski wrote: > > > Is possible to propose a patch rewritting wm scripts (like wmaker.inst) > > from BASH to Perl? > > Possible? Certainly. > > > Why? BASH is harder to maintain, more erro prone.

Re: rewrite scripts to Perl

2012-02-24 Thread Rodolfo kix Garcia
On Fri, 24 Feb 2012 09:19:42 +0100, Martin Dietze wrote: On Fri, February 24, 2012, Kamil Rytarowski wrote: Is possible to propose a patch rewritting wm scripts (like wmaker.inst) from BASH to Perl? Possible? Certainly. Why? BASH is harder to maintain, more erro prone. All the time there i

Re: rewrite scripts to Perl

2012-02-24 Thread Martin Dietze
On Fri, February 24, 2012, Kamil Rytarowski wrote: > Is possible to propose a patch rewritting wm scripts (like wmaker.inst) > from BASH to Perl? Possible? Certainly. > Why? BASH is harder to maintain, more erro prone. All the time there is a > need for hacks. I disagree. For simple, file sys

rewrite scripts to Perl

2012-02-23 Thread Kamil Rytarowski
Hello! Is possible to propose a patch rewritting wm scripts (like wmaker.inst) from BASH to Perl? Why? BASH is harder to maintain, more erro prone. All the time there is a need for hacks. Regards -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.