| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
the string. Until now this caused no harm, because the buffer code used
to tack two NULs onto buffers. With the new, soon to come, parsing code
this isn't the case anymore in all cases, so fix this.
|
|
|
|
|
|
| |
Makefile.
Requested by: ru
|
|
|
|
|
|
| |
this clear by constifying the return value.
Obtained from: DragonFlyBSD
|
|
|
|
|
|
| |
to has always been set to NULL for some time now.
Obtained from: DragonFlyBSD
|
|
|
|
| |
the default shell in the Makefile.
|
| |
|
|
|
|
| |
with %jd.
|
|
|
|
|
|
| |
consistency with the rest of make.
Obtained from: DragonFlyBSD (except for the rename)
|
|
|
|
|
|
|
| |
rename the function to be consistent with the naming scheme in the rest
of make. No functional changes.
Obtained from: DragonFlyBSD (idea and most of shell.h)
|
|
|
|
|
|
| |
the default shell.
Idea from: DragonFlyBSD
|
|
|
|
|
|
| |
before executing the shell. Until now this was done when the default
shell was the ksh. This failed if the default shell was sh or csh and
the user switched to ksh.
|
|
|
|
| |
target.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
set the current shell to DEFSHELL. Put all these specifications into
a list. Add user specified new shells to this list. If the user
just selects one of the already know shells just pick the right one
off the list. This let's one do something like:
# Full specification of the user's shell. This also selects the shell.
.SHELL: name=myshell path=/somewhere/foo echo=loud ...
FOO != bar # use myshell here
.SHELL: name=sh
BAR != baz # use /bin/sh here
.SHELL: name=myshell # no need for full spec here.
# continue to use the user's special shell.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the list of shell builtins. Both of these are needed for the compat
mode where make directly executes commands if the command line contains
neither a shell meta character nor a shell builtin. The list of builtins
is not changed, but csh has '@' added as a meta-character.
Initialize the default shell by parsing a string as one would specify
to the .SHELL target. So we get rid of the CShell clone of struct Shell which
just contained const char * where struct Shell had char *.
Add a debugging function for dumping a parsed shell description to
stdout.
|
|
|
|
| |
It will soon be needed for the .SHELL parsing code.
|
|
|
|
|
|
|
|
| |
introduce a struct that holds all the information about an argument
vector and pass that around.
Author: Max Okumoto <okumoto@ucsd.edu>
Obtained from: DragonFlyBSD
|
|
|
|
|
|
|
| |
in two places. While here don't bother returning anything from
Lst_Replace - nobody ever checks the return code.
Suggested by: jmallet
|
|
|
|
|
| |
Give the function one more argument to decide whether it should
print the flags like a C-expression or just space-delimited.
|
|
|
|
|
|
| |
get rid of sprite.h.
Obtained from: DragonFlyBSD
|
|
|
|
|
|
|
|
|
| |
Make sure we don't end up with shellPath beeing non-zero, but shellName
beeing zero in the error case - back out cleanly from the error.
When executing a command for macro assignment in Cmd_Exec() stuff the
path of the shell into argv[0], not the name. This makes no difference
from the functionality point of view, but allows the regression tests to
determine whether make executes the correct shell.
|
|
|
|
| |
warnc(3) without it.
|
|
|
|
| |
architectures.
|
|
|
|
| |
to get rid of the last two const warnings.
|
|
|
|
| |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.246)
|
|
|
|
|
|
| |
possible associated security hole.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.245)
|
|
|
|
|
|
| |
to get rid of a const warning.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.244)
|
|
|
|
| |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.243)
|
| |
|
| |
|
|
|
|
| |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.240)
|
|
|
|
|
|
|
| |
used so there is no need to stuff the value of .MAKE into it,
which btw isn't set for quite a while already.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.239)
|
|
|
|
|
|
|
| |
to top of main() and sort them. Make chdir_verify_path() static - it
is used only here.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.238)
|
|
|
|
| |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.237)
|
|
|
|
|
|
|
|
| |
into job.c. Move retrieving of environment nearer to the place where it
is actually used and invert the preprocessor conditionals to use
positive logic.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.236)
|
|
|
|
| |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.235)
|
|
|
|
| |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.234)
|
|
|
|
| |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.233)
|
|
|
|
|
|
|
|
|
|
| |
been two maxJobs variables: one static in job.c and one global used in
main.c and parse.c. Makeing one global out of these was the wrong way
to fix the problem. Instead rename the global one to jobLimit and keep
maxJobs static in job.c.
Suggested by: rwatson
PR: bin/72510
|
|
|
|
| |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.232)
|
|
|
|
|
|
| |
could benefit from even more untwisting.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.23[01])
|
|
|
|
|
|
| |
gcc magic.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.229)
|
|
|
|
|
|
| |
the potential to handle interrupts which it doesn't currently.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.228)
|
|
|
|
| |
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.227)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
takes place in the child process in a function ProcExec(). Make sure,
that the child does not call malloc() or other potential dangerous
functions (there are still calls to Punt() in the error case that
should go away). Allocate the argv string via malloc to overcome
the non-constness bug of the execvp prototype. Change the handling of
shell meta-characters and move the builtin list near the list of shell
builtins. Both of these lists should actuall be configurable by the .SHELL
target since they depend on the shell used.
Patch: 7.21[2-9], 7.22[0-46]
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
|
|
|
|
|
|
|
| |
where they actually belong to. Move the definitions of the strings
for special macros like "$*" from make.h to parse.h - they're used
only in the parser.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.211)
|
|
|
|
|
|
|
| |
default system directory into a writeable character array before passing
it to Path_Expand().
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.210)
|
|
|
|
|
|
| |
from globals.h into var.h.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (7.209)
|
|
|
|
|
| |
Patch: 7.207
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|
|
|
|
|
|
|
| |
remove nonints.h.
Patch: 7.204
Submitted by: Max Okumoto <okumoto@ucsd.edu>
|