On 16 Feb 2004, at 8:20 PM, Daniel Macks wrote:
Okay Rohan, I think that works now. I just patched Services.pm. Give it a try. For the second above, I used:
# Unfold multiline commands into one line $script =~ s/\s*\\\s*\n/ /g;
in case Maintainer got sloppy and left training whitespace after \. I also updated the Packaging Manual docs for Script fields (which didn't even mention #! scripts at all!).
Strictly speaking the '\' should appear immediately before the '\n'. To quote bash(1):
A non-quoted backslash (\) is the escape character. It preserves the
literal value of the next character that follows, with the exception of
<newline>. If a \<newline> pair appears, and the backslash is not
itself quoted, the \<newline> is treated as a line continuation (that
is, it is removed from the input stream and effectively ignored).
I'm not sure of the benefit of allowing sloppiness. If you do that you would get the strange behaviour that it would work with individual script lines, but if they added a "#!/bin/sh" on the first line, the shell would not recognise the continuation, and you'd get different results.
-- Rohan Lloyd
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel