|
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0 |
|
| #
4600b569 |
| 15-Jul-2018 |
Jilles Tjoelker <[email protected]> |
sh: Don't treat % specially in CDPATH
|
|
Revision tags: release/11.2.0, release/10.4.0, release/11.1.0 |
|
| #
fbbd9655 |
| 28-Feb-2017 |
Warner Losh <[email protected]> |
Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is
Renumber copyright clause 4
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point.
Submitted by: Jan Schaumann <[email protected]> Pull Request: https://github.com/freebsd/freebsd/pull/96
show more ...
|
|
Revision tags: release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0, release/10.1.0, release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0 |
|
| #
84fbdd8c |
| 15-Jul-2012 |
Jilles Tjoelker <[email protected]> |
sh: Expand assignment-like words specially for export/readonly/local.
Examples: export x=~ now expands the tilde local y=$1 is now safe, even if $1 contains IFS characters or metacharacters.
Fo
sh: Expand assignment-like words specially for export/readonly/local.
Examples: export x=~ now expands the tilde local y=$1 is now safe, even if $1 contains IFS characters or metacharacters.
For a word to "look like an assignment", it must start with a name followed by an equals sign, none of which may be quoted.
The special treatment applies when the first word (potentially after "command") is "export", "readonly" or "local". There may be quoting characters but no expansions. If "local" is overridden with a function there is no special treatment ("export" and "readonly" cannot be overridden with a function).
If things like local arr=(1 2 3) are ever allowed in the future, they cannot call a "local" function. This would either be a run-time error or it would call the builtin.
This matches Austin Group bug #351, planned for the next issue of POSIX.1.
PR: bin/166771
show more ...
|
|
Revision tags: release/8.3.0, release/7.4.0, release/8.2.0, release/8.1.0, release/7.3.0, release/8.0.0 |
|
| #
f6d21b6e |
| 11-Oct-2009 |
Jilles Tjoelker <[email protected]> |
MFC r196483,r196634: sh: Fix crash when undefining or redefining a currently executing function
Add a reference count to function definitions. Memory may leak if a SIGINT arrives in interactive mode
MFC r196483,r196634: sh: Fix crash when undefining or redefining a currently executing function
Add a reference count to function definitions. Memory may leak if a SIGINT arrives in interactive mode at exactly the wrong time, this will be fixed later by changing SIGINT handling.
PR: bin/137640 Approved by: re (kib)
show more ...
|
| #
260fc3f4 |
| 01-Jan-2012 |
Jilles Tjoelker <[email protected]> |
sh: Make various functions static.
|
| #
454a02b3 |
| 13-Jun-2011 |
Jilles Tjoelker <[email protected]> |
sh: Fix duplicate prototypes for builtins.
Have mkbuiltins write the prototypes for the *cmd functions to builtins.h instead of builtins.c and include builtins.h in more .c files instead of duplicat
sh: Fix duplicate prototypes for builtins.
Have mkbuiltins write the prototypes for the *cmd functions to builtins.h instead of builtins.c and include builtins.h in more .c files instead of duplicating prototypes for *cmd functions in other headers.
show more ...
|
| #
c059d822 |
| 05-Feb-2011 |
Jilles Tjoelker <[email protected]> |
sh: Remove clearcmdentry()'s now unused argument.
|
| #
3835f47c |
| 04-Feb-2011 |
Jilles Tjoelker <[email protected]> |
sh: Remove special code for shell scripts without magic number.
These are called "shell procedures" in the source.
If execve() failed with [ENOEXEC], the shell would reinitialize itself and execute
sh: Remove special code for shell scripts without magic number.
These are called "shell procedures" in the source.
If execve() failed with [ENOEXEC], the shell would reinitialize itself and execute the program as a script. This requires a fair amount of code which is not frequently used (most scripts have a #! magic number). Therefore just execute a new instance of sh (_PATH_BSHELL) to run the script.
show more ...
|
| #
c848bc18 |
| 06-Mar-2010 |
Jilles Tjoelker <[email protected]> |
sh: Improve the command builtin: * avoid unnecessary fork * allow executing builtins via command * executing a special builtin via command removes its special properties
Obtained from: NetBSD (parts)
|
| #
06a8a57f |
| 31-Dec-2009 |
Jilles Tjoelker <[email protected]> |
sh: Allow command -pv and command -pV (lookup using _PATH_STDPATH).
|
| #
95139d9d |
| 24-Dec-2009 |
Jilles Tjoelker <[email protected]> |
sh: Add some __dead2 to indicate functions that do not return.
|
| #
2cac6e36 |
| 24-Dec-2009 |
Jilles Tjoelker <[email protected]> |
sh: Constify various strings.
Most of this is adding const keywords, but setvar() in var.c had to be changed somewhat more.
|
| #
eb33e843 |
| 23-Aug-2009 |
Jilles Tjoelker <[email protected]> |
sh: Fix crash when undefining or redefining a currently executing function.
Add a reference count to function definitions. Memory may leak if multiple SIGINTs arrive in interactive mode, this will b
sh: Fix crash when undefining or redefining a currently executing function.
Add a reference count to function definitions. Memory may leak if multiple SIGINTs arrive in interactive mode, this will be fixed later by changing SIGINT handling.
PR: bin/137640
show more ...
|
|
Revision tags: release/7.2.0, release/7.1.0, release/6.4.0, release/7.0.0, release/6.3.0, release/6.2.0, release/5.5.0, release/6.1.0 |
|
| #
85170a4a |
| 09-Apr-2006 |
Stefan Farfeleder <[email protected]> |
Implement some of the differences between special built-ins and other builtins demanded by POSIX. - A redirection error is only fatal (meaning the execution of a shell script is terminated) for spe
Implement some of the differences between special built-ins and other builtins demanded by POSIX. - A redirection error is only fatal (meaning the execution of a shell script is terminated) for special built-ins. Previously it was fatal for all shell builtins, causing problems like the one reported in PR 88845. - Variable assignments remain in effect for special built-ins. - Option or operand errors are only fatal for special built-ins. This change also makes errors from 'fc' non-fatal (I could not find any reasons for this behaviour).
Somewhat independently from the above down-grade the error handling in the shift built-in if the operand is bigger than $# from an error() call (which is now fatal) to a return 1. I'm not sure if this should be considered a POSIX "operand error", however this change is needed for now as we trigger that error while building libncurses. Comparing with other shells, zsh does the same as our sh before this change (write a diagnostic, return 1), bash behaves as our sh after this commit (no diagnostic, return 1) and ksh93 and NetBSD's sh treat it as a fatal error.
show more ...
|
|
Revision tags: release/6.0.0 |
|
| #
b2f153fe |
| 28-Oct-2005 |
Stefan Farfeleder <[email protected]> |
Add the POSIX options -v and -V to the 'command' builtin. Both describe the type of their argument, if it is a shell function, an alias, a builtin, etc. -V is more verbose than -v.
PR: 77259, 84539
|
|
Revision tags: release/5.4.0, release/4.11.0, release/5.3.0, release/4.10.0 |
|
| #
6195fb41 |
| 06-Apr-2004 |
Mark Murray <[email protected]> |
Remove clause 3 from the UCB licenses.
OK'ed by: imp, core
|
|
Revision tags: release/5.2.1, release/5.2.0, release/4.9.0 |
|
| #
2ba1b30b |
| 05-Jul-2003 |
Diomidis Spinellis <[email protected]> |
Changes following CScout analysis:
- Removed dead declarations - Made objects that should have been declared as static, static.
The changes use STATIC instead of static, following the existing conv
Changes following CScout analysis:
- Removed dead declarations - Made objects that should have been declared as static, static.
The changes use STATIC instead of static, following the existing convention in the rest of the code.
Approved by: schweikh (mentor) MFC after: 2 weeks
show more ...
|
|
Revision tags: release/5.1.0, release/4.8.0, release/5.0.0, release/4.6.2 |
|
| #
5134c3f7 |
| 02-Feb-2002 |
Warner Losh <[email protected]> |
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 |
|
| #
a436dc79 |
| 20-Dec-1999 |
Martin Cracauer <[email protected]> |
Fix command hash handling on PATH=... command
Noted by and fix works for Marcel Moolenaar <[email protected]>
|
| #
2a456239 |
| 27-Aug-1999 |
Peter Wemm <[email protected]> |
$Id$ -> $FreeBSD$
|
| #
76ad65f7 |
| 28-Apr-1997 |
Steve Price <[email protected]> |
Add a type builtin and nuke register keyword usage.
Obtained from: NetBSD
|
| #
b97fa2ef |
| 22-Feb-1997 |
Peter Wemm <[email protected]> |
Revert $FreeBSD$ to $Id$
|
| #
1130b656 |
| 14-Jan-1997 |
Jordan K. Hubbard <[email protected]> |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
show more ...
|
| #
ab0a2172 |
| 14-Dec-1996 |
Steve Price <[email protected]> |
Merge in NetBSD mods and -Wall cleaning.
Obtained from: NetBSD, me
|
| #
aa9caaf6 |
| 01-Sep-1996 |
Peter Wemm <[email protected]> |
Merge of 4.4-Lite2 sh source, plus some gcc -Wall cleaning. This is a merge of parallel duplicate work by Steve Price and myself. :-]
There are some changes to the build that are my fault... mkini
Merge of 4.4-Lite2 sh source, plus some gcc -Wall cleaning. This is a merge of parallel duplicate work by Steve Price and myself. :-]
There are some changes to the build that are my fault... mkinit.c was trying (poorly) to duplicate some of the work that make(1) is designed to do. The Makefile hackery is my fault too, the depend list was incomplete because of some explicit OBJS+= entries, so mkdep wasn't picking up their source file #includes.
This closes a pile of /bin/sh PR's, but not all of them..
Submitted by: Steve Price <[email protected]>, peter
show more ...
|