> Joerg Schilling wrote:
> > Josip Gracin <[EMAIL PROTECTED]> wrote:
> >> [EMAIL PROTECTED] wrote:
> >>> You could make the first line of the scripts:
> >>>   #!/usr/bin/env sh
> >> That is what I thought.  Shouldn't this become the
> law then? ;-)  I 
> > 
> > No, because it opens security issues.
> 
> Can we conclude then that there is no way to write an
> XPG4 compliant 
> shell script which is guaranteed to be runnable in
> Solaris and Linux?
> 
> Am I the only one who finds this disturbing?

As Joerg says later on in the thread:

"The line: '#!/bin/sh' is not POSIX

POSIX is a source standard and does not deal with path names at all.

POSIX requires that you get a POSIX shell if you type "sh" after you
did setup a POSIX compliant PATH"

So, there's nothing disturbing about this at all.

-Shawn
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to