[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how execute a script



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Nov 17, 2015 at 04:13:48PM -0500, shawn wilson wrote:
> On Tue, Nov 17, 2015 at 3:24 PM,  <tomas@tuxteam.de> wrote:

[...]

> > Now you lost me.
> >
> 
> If magic were smarter (was able to derive from syntax or had regex
> capability in the format), it could've still told me I was looking at
> a script (and not just a bunch of text - which is next to useless). It
> doesn't, so arguing that magic could be used (not an argument I've
> seen, but one I was expecting and figured I'd preempt) instead of an
> extension is lacking.

Got it. But magic *can* do many of those things. A headless shell
script is a tough nut to crack, though: "echo" could occur as well
in a Tcl script (via Tcl's crazy but genius "unknown" mechanism).

Start here[1] if you want to have some fun :-)

[1] <https://en.wikipedia.org/wiki/Polyglot_(computing)>

regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlZLm2MACgkQBcgs9XrR2kZQaACfUEYXN1YCBt94CoWABtYuzl+v
AsUAn04zBdR0IFSEy/As5nnHii3/ixU0
=gzE/
-----END PGP SIGNATURE-----


Reply to: