Revision tags: release/1.1.5.1_cvs |
|
#
4b88c807 |
| 26-May-1994 |
Rodney W. Grimes <rgrimes@FreeBSD.org> |
BSD 4.4 Lite bin Sources
|
#
57063576 |
| 06-Feb-2010 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Do not stat() $MAIL/$MAILPATH in non-interactive shells.
These may be NFS mounted, and we should not touch them unless we are going to do something useful with the information.
|
#
9199c09a |
| 06-Jan-2010 |
Warner Losh <imp@FreeBSD.org> |
Merge from head at r201628.
# This hasn't been tested, and there are at least three bad commits # that need to be backed out before the branch will be stable again.
|
#
384aedab |
| 27-Dec-2009 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Various warning fixes (from WARNS=6 NO_WERROR=1): - const - initializations to silence -Wuninitialized (it was safe anyway) - remove nested extern declarations - rename "index" locals to "idx"
|
#
29d401c2 |
| 25-Dec-2009 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Do not run callers' exception handlers in subshells.
Reset the exception handler in the child to main's.
This avoids inappropriate double cleanups or shell duplication when the exception is cau
sh: Do not run callers' exception handlers in subshells.
Reset the exception handler in the child to main's.
This avoids inappropriate double cleanups or shell duplication when the exception is caught, such as 'fc' and future 'command eval' and 'command .'.
show more ...
|
#
2cac6e36 |
| 24-Dec-2009 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Constify various strings.
Most of this is adding const keywords, but setvar() in var.c had to be changed somewhat more.
|
#
16d8c5ec |
| 24-Dec-2009 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Remove setting variables from dotcmd/exportcmd.
It is already done by evalcommand(), unless special-ness has been removed, in which case variable assignments should not persist. (These are curre
sh: Remove setting variables from dotcmd/exportcmd.
It is already done by evalcommand(), unless special-ness has been removed, in which case variable assignments should not persist. (These are currently always special builtins, but this will change later: command builtin, command substitution.)
This also fixes a memory leak when calling . with variable assignments.
Example: valgrind --leak-check=full sh -c 'x=1 . /dev/null; x=2'
show more ...
|
#
c6204d4a |
| 21-Nov-2009 |
Jilles Tjoelker <jilles@FreeBSD.org> |
sh: Some changes to stderr flushing: * increase buffer size from 100 to 256 bytes * remove implied flush from out2str(), in particular this avoids unnecessary flushing in the middle of a -x tracing
sh: Some changes to stderr flushing: * increase buffer size from 100 to 256 bytes * remove implied flush from out2str(), in particular this avoids unnecessary flushing in the middle of a -x tracing line * rename dprintf() to out2fmt_flush(), make it flush out2 and use this function in various places where flushing is desired after an error message
show more ...
|
#
09c817ba |
| 03-Jul-2009 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
- MFC
|
#
960da934 |
| 13-Jun-2009 |
Jilles Tjoelker <jilles@FreeBSD.org> |
Avoid leaving unnecessary waiting shells in many forms of sh -c COMMAND.
This change only affects strings passed to -c, when the -s option is not used.
The approach is to check if there may be addi
Avoid leaving unnecessary waiting shells in many forms of sh -c COMMAND.
This change only affects strings passed to -c, when the -s option is not used.
The approach is to check if there may be additional data in the string after parsing each command. If there is none, use the EV_EXIT flag so that a fork may be omitted in specific cases.
If there are empty lines after the command, the check will not see the end and forks will not be omitted. The same thing seems to happen in bash.
Example: sh -c 'ps lT' No longer shows a shell process waiting for ps to finish.
PR: bin/113860 Reviewed by: stefanf Approved by: ed (mentor)
show more ...
|
#
7e857dd1 |
| 12-Jun-2009 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
- Merge from HEAD
|
#
cb806389 |
| 31-May-2009 |
Stefan Farfeleder <stefanf@FreeBSD.org> |
Fix the eval command in combination with set -e. Before this change the shell would always terminate if eval returned with a non-zero exit status regardless if the status was actually tested. Unfor
Fix the eval command in combination with set -e. Before this change the shell would always terminate if eval returned with a non-zero exit status regardless if the status was actually tested. Unfortunately a new file-scope variable is needed, the alternative would only be to add a new parameter to all built-ins.
PR: 134881
show more ...
|
Revision tags: release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0 |
|
#
de37e41c |
| 07-Oct-2006 |
Stefan Farfeleder <stefanf@FreeBSD.org> |
Add the POSIX option -p to the jobs builtin command. It prints the PID of the process leader for each job. Now the last specified option for the output format (-l, -p or -s) wins, previously -s tru
Add the POSIX option -p to the jobs builtin command. It prints the PID of the process leader for each job. Now the last specified option for the output format (-l, -p or -s) wins, previously -s trumped -l.
PR: 99926 Submitted by: Ed Schouten and novel (patches modified by me)
show more ...
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0 |
|
#
e5f1cf08 |
| 02-Apr-2006 |
Stefan Farfeleder <stefanf@FreeBSD.org> |
Issue an error when . (dot) is invoked without a filename. The synopsis is just ". file" according to POSIX, however many other shells allow arguments to be passed after the file. For compatibility
Issue an error when . (dot) is invoked without a filename. The synopsis is just ". file" according to POSIX, however many other shells allow arguments to be passed after the file. For compatibility (we even use that feature in buildworld) additional arguments are not considered to be an error, even though this shell does not do anything with the arguments at all.
show more ...
|
#
81b2ed3e |
| 04-Feb-2006 |
Jens Schweikhardt <schweikh@FreeBSD.org> |
Initialize PWD early on (don't expect it to be inherited from the environment or set it only when changing directories with cd).
PR: standards/92640
|
Revision tags: release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0 |
|
#
6195fb41 |
| 06-Apr-2004 |
Mark Murray <markm@FreeBSD.org> |
Remove clause 3 from the UCB licenses.
OK'ed by: imp, core
|
Revision tags: release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs |
|
#
c515abc5 |
| 01-Oct-2002 |
Tim J. Robbins <tjr@FreeBSD.org> |
Remove some kind of profiling support that required the 4.2BSD monitor() function in libc.
|
#
b1a66750 |
| 01-Oct-2002 |
Tim J. Robbins <tjr@FreeBSD.org> |
Remove bits and pieces of support for atty, which was made obsolete by adding history and vi/emacs-style line editing to the shell itself. Atty was a user-mode terminal emulator (like screen and wind
Remove bits and pieces of support for atty, which was made obsolete by adding history and vi/emacs-style line editing to the shell itself. Atty was a user-mode terminal emulator (like screen and window) that did line editing and history.
show more ...
|
Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
#
2749b141 |
| 30-Jun-2002 |
David E. O'Brien <obrien@FreeBSD.org> |
Consistently use FBSDID
|
#
ad8a0759 |
| 31-May-2002 |
Tim J. Robbins <tjr@FreeBSD.org> |
Add -s (output PID's only) and -l (show PID's) options to the jobs(1) builtin. Modify the output format to match what SUSv3 requires.
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
5134c3f7 |
| 02-Feb-2002 |
Warner Losh <imp@FreeBSD.org> |
o __P has been reoved o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int arg
o __P has been reoved o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o Change int foo() { ... to int foo(void) { ...
show more ...
|
Revision tags: release/4.3.0_cvs, release/4.3.0, release/4.2.0, release/4.1.1_cvs |
|
#
84c3800c |
| 16-Aug-2000 |
Martin Cracauer <cracauer@FreeBSD.org> |
From submitter: growstackblock() sometimes relocates a stack_block considered empty without properly relocating stack marks referencing that block. The first call to popstackmark() with the unrelocat
From submitter: growstackblock() sometimes relocates a stack_block considered empty without properly relocating stack marks referencing that block. The first call to popstackmark() with the unrelocated stack mark as argument then causes sh to abort.
Relocating the relevant stack marks seems to solve this problem.
The patch changes the semantics of popstackmark() somewhat. It can only be called once after a call to setstackmark(), thus cmdloop() in main.c needs an extra call to setstackmark().
PR: bin/19983 Submitted by: Tor.Egge@fast.no Reviewed by: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
show more ...
|
Revision tags: release/4.1.0, release/3.5.0_cvs |
|
#
fba0ed11 |
| 14-Apr-2000 |
Warner Losh <imp@FreeBSD.org> |
Use #include <errno.h> rather than extern int errno;.
|
Revision tags: release/4.0.0_cvs, release/3.4.0_cvs |
|
#
6c48b6cf |
| 29-Nov-1999 |
Martin Cracauer <cracauer@FreeBSD.org> |
Include strerror(errno) in error messages after failed system calls. Fix a warning.
|
Revision tags: release/3.3.0_cvs |
|
#
2a456239 |
| 28-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|