MESSAGE
DATE | 2016-01-22 |
FROM | Christopher League
|
SUBJECT | Re: [Learn] CS664
|
From learn-bounces-at-nylxs.com Fri Jan 22 19:55:16 2016 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www.mrbrklyn.com (www.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id 887C31624C6; Fri, 22 Jan 2016 19:55:16 -0500 (EST) X-Original-To: learn-at-www.mrbrklyn.com Delivered-To: learn-at-www.mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 1000) id 2838616112C; Fri, 22 Jan 2016 19:17:32 -0500 (EST) Resent-From: Ruben Safir Resent-Date: Fri, 22 Jan 2016 19:17:32 -0500 Resent-Message-ID: <20160123001732.GF6893-at-www.mrbrklyn.com> Resent-To: learn-at-mrbrklyn.com X-Original-To: ruben-at-mrbrklyn.com Delivered-To: ruben-at-mrbrklyn.com Received: from B-EXH-EDGE1.liunet.edu (b-edge1.smtp.liu.edu [148.4.248.206]) by mrbrklyn.com (Postfix) with ESMTP id 234AD16112B for ; Fri, 22 Jan 2016 10:48:06 -0500 (EST) Received: from B-EXH-3.liunet.edu (148.4.250.212) by B-EXH-EDGE1.liunet.edu (148.4.248.206) with Microsoft SMTP Server (TLS) id 14.3.210.2; Fri, 22 Jan 2016 10:47:53 -0500 Received: from localhost (96.250.202.23) by B-EXH-3.liunet.edu (148.4.250.212) with Microsoft SMTP Server (TLS) id 15.0.1130.7; Fri, 22 Jan 2016 10:48:05 -0500 From: Christopher League To: Ruben Safir In-Reply-To: <56A24C14.6050204-at-mrbrklyn.com> References: <87h9i64kkg.fsf-at-lydrik.home.lan> <20160122131000.GA17212-at-www.mrbrklyn.com> <87bn8d4sr5.fsf-at-lydrik.home.lan> <56A245B9.6080400-at-mrbrklyn.com> <87si1p3afh.fsf-at-lydrik.home.lan> <56A24C14.6050204-at-mrbrklyn.com> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) Date: Fri, 22 Jan 2016 10:48:02 -0500 Message-ID: <87powt39al.fsf-at-lydrik.home.lan> MIME-Version: 1.0 X-Originating-IP: [96.250.202.23] X-ClientProxiedBy: U-EXH-CAS.liunet.edu (148.4.184.26) To B-EXH-3.liunet.edu (148.4.250.212) X-UID: 5783 Subject: Re: [Learn] CS664 X-BeenThere: learn-at-nylxs.com X-Mailman-Version: 2.1.17 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1587821620==" Errors-To: learn-bounces-at-nylxs.com Sender: "Learn"
--===============1587821620== Content-Type: multipart/signed; boundary="===-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
--===-=-= Content-Type: multipart/mixed; boundary="=-=-="
--=-=-= Content-Type: multipart/alternative; boundary="==-=-="
--==-=-= Content-Type: text/plain
Ruben Safir writes:
> Yeah what was confusing me, I think is that you can't use the ./filename > see forthcoming usenet post
Yup. In some languages and interpreters I've worked on, the object code (even if it's a binary file) allows to use hash-bang notation... so if the `.class` file started with
#!/usr/bin/env java
and it was `chmod +x`, then you could just run it with `./Hello.class`. The interpreter would then skip through the first newline to get to the binary content.
As far as I know, class files don't support that... it would consider the file to be corrupt if it begins with `#!`, which is a shame.
CL
--==-=-= Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
1.0, user-scalable=3Dyes">
Ruben Safir ruben-at-mrbrklyn.com= writes:
Yeah what was confusing me, I think is that you can=E2=80=99t use the ./= filename see forthcoming usenet post
Yup. In some languages and interpreters I=E2=80=99ve worked on, the obje= ct code (even if it=E2=80=99s a binary file) allows to use hash-bang notati= on=E2=80=A6 so if the .class file started with
#!/usr/bin/env java
and it was chmod +x , then you could just run it with = ./Hello.class . The interpreter would then skip through the first new= line to get to the binary content.
As far as I know, class files don=E2=80=99t support that=E2=80=A6 it wou= ld consider the file to be corrupt if it begins with #! , which= is a shame.
CL
--==-=-=--
--=-=-=--
--===-=-= Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2
iQEcBAEBCAAGBQJWok8yAAoJEGuLsz1PMbCLVYAH/30WfXP8nf3mL4T7QW4uuco2 icvlP1KT9d3Y62936Sgs9a/gadw6EyQOa7O3VNfp3ksa0ZJzE+rI5X19oFAxyrJp 8ll9ma+UARqPN4R229POZHUZl5WAzso+Wx50bWazaSB/nqVAXd3I9zjt7GC2Dn0y /5sskHgQ8E6kgJn9NO4Ymt+M0HeTUkU4qiM7nd9zZ03LYyc0iafQ4F/6HdMC3A3b nXHpyJXF4YXcOqq2xAJF/c03BZgdyDB1OakcEawxuBn4VdS6ifqJyzCn92euenBL 6OaqRsJzDMmagLR6kq/IbA9r33lTPNCYJ5vrX0UG0HLTDr1VffNkgkSyjbDrqhk= =Ht0V -----END PGP SIGNATURE----- --===-=-=--
--===============1587821620== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ Learn mailing list Learn-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/learn
--===============1587821620==--
|
|