[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: #!/usr/bin/env perl
From: |
Ludovic Courtès |
Subject: |
Re: #!/usr/bin/env perl |
Date: |
Sat, 23 Feb 2013 16:15:51 +0100 |
User-agent: |
Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) |
Andreas Enge <address@hidden> skribis:
> Am Samstag, 23. Februar 2013 schrieb Ludovic Courtès:
>> > (make-regexp
>> > "^[[:blank:]]*([[:graph:]]+)[[:blank:]]*([[:graph:]]*)(.*)$")))
>>
>> I think it should be a + after the second [[:blank:]], because there
>> should be space between the interpreter name and its argument.
>
> Sometimes, there is no space at all: In
> #!/usr/bin/perl
> for instance, when there is no argument. Then the "+" version would fail.
> With "*", it works as expected.
Oh, right.
>> > + (if has-env
>> > + (begin
>> Please align with the ‘h’ here...
>> > + (patch p bin
>> > + (string-append " " second
>> > third)))))
>> ... and with the ‘p’ here.
>
> Ok. The annoying thing with this way of indenting is that lines become very
> long very quickly; I like keeping them at less than 80 characters.
When it becomes too long, it’s sometimes a sign that an auxiliary
function may be needed.
Thanks!
Ludo’.
- Re: #!/usr/bin/env perl, Andreas Enge, 2013/02/22
- Re: #!/usr/bin/env perl, Ludovic Courtès, 2013/02/22
- Re: #!/usr/bin/env perl, Andreas Enge, 2013/02/23
- Re: #!/usr/bin/env perl, Ludovic Courtès, 2013/02/23
- Re: #!/usr/bin/env perl, Andreas Enge, 2013/02/23
- Re: #!/usr/bin/env perl, Ludovic Courtès, 2013/02/23
- Re: #!/usr/bin/env perl, Andreas Enge, 2013/02/23
- Re: #!/usr/bin/env perl, Ludovic Courtès, 2013/02/23
- Re: #!/usr/bin/env perl, Andreas Enge, 2013/02/23
Re: #!/usr/bin/env perl, Mark H Weaver, 2013/02/24