1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00
freebsd/bin
Garance A Drosehn 5cc540d471 Change /bin/sh so *it* implements the processing needed for scripts to
work as expected when they have a "shebang line" of:

     #!/bin/sh -- # -*- perl -*- -p

This specific line is recommended in some perl documentation, and I think
I've seen similar lines in documentation for ruby and python.  Those
write-ups expect `sh' to ignore everything after the '--' if the first
thing after the '--' is a '#'.  See chapter 19, "The Command-Line Interface"
in 3rd edition of "Programming Perl", for some discussion of why perl
recommends using this line in some circumstances.

The above line does work on solaris, irix and aix (as three data points),
and it used to work on FreeBSD by means of a similar patch to execve().
However, that change to execve() effected *all* shells (which caused
other problems), and that processing was recently removed.

PR:		16393  (the original request to fix the same issue)
Reviewed by:	freebsd-current (looking at a slightly different patch)
MFC after:	1 week
2005-02-16 05:17:58 +00:00
..
cat Add the new standard EXIT STATUS section where appropriate. 2005-01-16 16:41:59 +00:00
chflags WARNS?=6 is already in bin/Makefile.inc, so remove this one. 2005-01-27 13:23:05 +00:00
chio Don't specify SRCS= when it can be obtained from PROGS= 2005-01-27 13:25:09 +00:00
chmod Expand contractions. 2005-02-13 23:45:54 +00:00
cp Sync program's usage() with manpage's SYNOPSIS. 2005-02-09 17:37:39 +00:00
csh Use LC_MESSAGES locale category instead of value of LANG environment variable 2005-02-01 08:48:15 +00:00
date Expand *n't contractions. 2005-02-13 22:25:33 +00:00
dd Add the new standard EXIT STATUS section where appropriate. 2005-01-16 16:41:59 +00:00
df Add the new standard EXIT STATUS section where appropriate. 2005-01-16 16:41:59 +00:00
domainname /*- or .\"- or #- to begin license clauses. 2005-01-10 08:39:26 +00:00
echo Add the new standard EXIT STATUS section where appropriate. 2005-01-16 16:41:59 +00:00
ed Sync program's usage() with manpage's SYNOPSIS. 2005-02-09 17:37:39 +00:00
expr Add the new standard EXIT STATUS section where appropriate. 2005-01-16 16:41:59 +00:00
getfacl Sync program's usage() with manpage's SYNOPSIS. 2005-02-09 17:37:39 +00:00
hostname /*- or .\"- or #- to begin license clauses. 2005-01-10 08:39:26 +00:00
kenv /*- or .\"- or #- to begin license clauses. 2005-01-10 08:39:26 +00:00
kill Add the new standard EXIT STATUS section where appropriate. 2005-01-16 16:41:59 +00:00
ln Expand *n't contractions. 2005-02-13 22:25:33 +00:00
ls Expand *n't contractions. 2005-02-13 22:25:33 +00:00
mkdir Sync program's usage() with manpage's SYNOPSIS. 2005-02-09 17:37:39 +00:00
mv Add the new standard EXIT STATUS section where appropriate. 2005-01-16 16:41:59 +00:00
pax Expand *n't contractions. 2005-02-13 22:25:33 +00:00
ps Several improvements to ps.1: 2005-02-14 16:56:15 +00:00
pwd Sync program's usage() with manpage's SYNOPSIS. 2005-02-09 17:37:39 +00:00
rcp Expand *n't contractions. 2005-02-13 22:25:33 +00:00
realpath Add the new standard EXIT STATUS section where appropriate. 2005-01-16 16:41:59 +00:00
rm Sync program's usage() with manpage's SYNOPSIS. 2005-02-09 17:37:39 +00:00
rmail NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00
rmdir Remove useless errno.h include. 2005-01-26 06:51:28 +00:00
setfacl Sync program's usage() with manpage's SYNOPSIS. 2005-02-09 17:37:39 +00:00
sh Change /bin/sh so *it* implements the processing needed for scripts to 2005-02-16 05:17:58 +00:00
sleep Add the new standard EXIT STATUS section where appropriate. 2005-01-16 16:41:59 +00:00
stty Sync program's usage() with manpage's SYNOPSIS. 2005-02-09 17:37:39 +00:00
sync /*- or .\"- or #- to begin license clauses. 2005-01-10 08:39:26 +00:00
test /*- or .\"- or #- to begin license clauses. 2005-01-10 08:39:26 +00:00
uuidgen Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
Makefile - Build things in pure dictionary order (see sort(1)). 2004-01-16 15:23:19 +00:00
Makefile.inc NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00