On 15 May 2017, at 16:44, Jonathan Anderson wrote:

You can already execute "non-executable" binaries using the `exec` shell built-in:

```
$ cp /bin/sh .
$ chmod -x sh
$ exec sh
```

Er, oops: I ought to have said, you can execute non-executable binaries by copying and marking them `+x`:

```
$ cp /bin/sh .
$ chmod +x sh
$ ./sh
```

(please ignore the bit about `exec`, that's from another mental thread)


Jon
--
Jonathan Anderson
jonat...@freebsd.org
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to