lkml.org 
[lkml]   [2004]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Linux 2.6: shebang handling in fs/binfmt_script.c
On Mon, Feb 23, 2004 at 05:29:42PM -0800, Paul Jackson wrote:
> > I don't see any reason, why one should stick to the limits of some other
> > operating systems, when it's not necessary.
>
> If I make it a habit to write portable code, then over the years, I
> cause fewer problems for myself and others. More things "just work".
> I've got scripts that I use that are 10 or 20 years old, and have been
> used on all manner of evironments that could not have been anticipated
> when the script was first written.

Yes, it's true, that this is often sensible. But I also think, that
sometimes we must get rid of old restrictions, that don't make much
sense.

The patch does not prevent you from writing portable scripts, but it
allows us to write scripts, that can't be written without this change
(or you need some work around like wrappers or an interpreter parsing
the shebang line on its own).

And because you could see this patch as a step towards other operating
systems to reduce the chaos the web pages mentioned in this thread
show[1], this patch might even make scripts written for other operating
systems work under Linux. So, there are not only disadvantages with
regard to portability.

Regards,

Hansjoerg Lipp

[1] http://www.in-ulm.de/~mascheck/various/shebang/
http://homepages.cwi.nl/~aeb/std/hashexclam-1.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.051 / U:0.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site