> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Steve Comstock
> Sent: Wednesday, May 24, 2006 8:13 AM
> To: IBM-MAIN@BAMA.UA.EDU
> Subject: Re: A little more insight on the Java strangeness 
> I'm encountering
> 

<snip>

> > shell should NOT even attempt to run the file, what is with 
> that? That
> > is WRONG, WRONG, WRONG!
> 
> No, it's RIGHT, RIGHT, RIGHT!

I guess that I was not plain. The standard shell, sh, should not have
even attempted to execute a file that does not have the execute bit on.
But it does try to execute it despite the lack of the execute bit being
on. That is what is WRONG. I agree that the file should not have the
execute bit on. And the javac compiler generates it correctly, without
the execute bit.

> 
> As Peter mentioned above, the file does not need the execute
> bit set: it is not executable.

Agreed.

> 
> What is executable is the JVM. So the "java" command must
> have the execute bit set; when you enter:
> 
> java Howdy
> 
> then the JVM runs and interprets the byte code in Howdy.class.
> 
> It all makes {perfect | reasonable} sense.
> 
> 
> 
<snip>

> 
> No. Class files are not executable in the classic sense: they
> are interpreted by "java".

Right. That is why the shell, sh, should not have even attempted to
execute the file when you only entered its name on the command prompt.
There is a "bug" in the standard shell, sh, if it tries to execute a
file which does not have the eXecute bit on.

> 
> Kind regards,
> 
> -Steve Comstock

The whole problem stemmed, IMO, from the shell trying to execute a file
which was not marked as executable. This is WRONG. And does not happen
with BASH or tcsh.

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and its
content is protected by law.  If you are not the intended recipient, you
should delete this message and are hereby notified that any disclosure,
copying, or distribution of this transmission, or taking any action
based on it, is strictly prohibited. 
 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to