freebsd-nq/bin
Jilles Tjoelker 604e8224f8 sh: Do not try to execute binary files as scripts.
If execve() returns an [ENOEXEC] error, check if the file is binary before
trying to execute it using sh. A file is considered binary if at least one
of the first 256 bytes is '\0'.

In particular, trying to execute ELF binaries for the wrong architecture now
fails with an "Exec format error" message instead of syntax errors and
potentially strange results.
2011-02-05 12:54:59 +00:00
..
cat
chflags mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
chio Zero struct before reading from it 2010-06-02 09:34:41 +00:00
chmod
cp Don't try to copy a socket after "xxx is a socket (not copied)." message. 2010-06-05 08:50:39 +00:00
csh Move most of the remaining USD/PSD/SMM papers into share/doc 2010-12-04 10:11:20 +00:00
date Explain that setting an absolute day value can fail and that the month should 2010-06-04 06:56:58 +00:00
dd
df
domainname
echo echo(1): Clarify portability and mention literal "--" handling. 2010-11-12 22:43:40 +00:00
ed
expr expr(1): Add sh(1) versions of examples, remove an incorrect example. 2010-09-09 21:59:53 +00:00
getfacl More mdoc nitpicking to improve compatibility to mdocml 2010-06-11 06:04:07 +00:00
hostname
kenv
kill Make sys_signame upper case. 2011-02-04 16:40:50 +00:00
ln Spelling fixes. 2010-07-31 21:09:49 +00:00
ls Change all our own code to use st_*tim instead of st_*timespec. 2010-03-28 13:16:08 +00:00
mkdir
mv
pax Touch the man page date after updating the ustar limitations. 2010-08-29 12:17:16 +00:00
pkill Make sys_signame upper case. 2011-02-04 16:40:50 +00:00
ps Document P_FOLLOWFORK. 2011-01-25 11:04:16 +00:00
pwait mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
pwd
rcp Change all our own code to use st_*tim instead of st_*timespec. 2010-03-28 13:16:08 +00:00
realpath
rm Fix typo and grammar nit 2010-10-31 19:16:54 +00:00
rmail
rmdir
setfacl Increase carried_error if we skip a file due to an error. This ensures 2011-01-03 17:17:31 +00:00
sh sh: Do not try to execute binary files as scripts. 2011-02-05 12:54:59 +00:00
sleep Document the new argument parser for sleep(1) and SIGINFO behaviour. 2010-08-02 10:59:23 +00:00
stty Add a new libc function: cfmakesane(3). 2010-11-02 17:00:56 +00:00
sync
test test: Move tests to tools/regression/bin/test. 2010-11-08 23:15:10 +00:00
uuidgen
Makefile Merge from tbemd: 2010-09-13 01:29:51 +00:00
Makefile.inc