Author: jilles
Date: Sat Nov 13 22:10:26 2010
New Revision: 215266
URL: http://svn.freebsd.org/changeset/base/215266
Log:
sh: Do the additional actions if 'local -' restore changes -i/-m/-E/-V.
Example:
f() { local -; set +m; }; f
caused failure to execute external programs because
Author: jilles
Date: Sat Nov 13 22:20:46 2010
New Revision: 215268
URL: http://svn.freebsd.org/changeset/base/215268
Log:
sh: Update the suspend example for the change of the job control flag
from -j to -m, many years ago.
Due to r215266, this function now actually works.
Modified:
Author: jilles
Date: Sun Nov 14 15:31:59 2010
New Revision: 215303
URL: http://svn.freebsd.org/changeset/base/215303
Log:
sh: Add binary buffered output for use by the printf builtin.
Modified:
head/bin/sh/bltin/bltin.h
head/bin/sh/output.c
head/bin/sh/output.h
Modified:
Author: jilles
Date: Sun Nov 14 19:36:55 2010
New Revision: 215311
URL: http://svn.freebsd.org/changeset/base/215311
Log:
MFC r213775: sh: Make DEBUG traces 64-bit clean:
- Use %t to print ptrdiff_t values.
- Cast a ptrdiff_t value explicitly to int for a field width specifier.
While
Author: jilles
Date: Sun Nov 14 19:40:22 2010
New Revision: 215313
URL: http://svn.freebsd.org/changeset/base/215313
Log:
MFC r213925: sh: Use stddef.h rather than sys/stddef.h.
sys/stddef.h is only for the kernel and conflicts with stddef.h.
Note: there is no mergeinfo as r213925 was
Author: jilles
Date: Wed Nov 17 20:21:10 2010
New Revision: 215440
URL: http://svn.freebsd.org/changeset/base/215440
Log:
MFC r174692: Fix wordexp() testsuite.
Original commit by das.
Modified:
stable/7/tools/regression/lib/libc/gen/test-wordexp.c
Directory Properties:
Author: jilles
Date: Wed Nov 17 21:45:11 2010
New Revision: 215442
URL: http://svn.freebsd.org/changeset/base/215442
Log:
MFC r198406: wordexp(3): fix some bugs with signals and long outputs
* retry various system calls on EINTR
* retry the rest after a short read (common if there is more
Author: jilles
Date: Wed Nov 17 23:13:02 2010
New Revision: 215444
URL: http://svn.freebsd.org/changeset/base/215444
Log:
MFC r215022: test: Move tests to tools/regression/bin/test.
Convert the tests to the perl prove format.
Remove obsolete TEST.README (results of an old TEST.sh for some
Author: jilles
Date: Fri Nov 19 12:56:13 2010
New Revision: 215520
URL: http://svn.freebsd.org/changeset/base/215520
Log:
sh: Add printf builtin.
This was removed in 2001 but I think it is appropriate to add it back:
* I do not want to encourage people to write fragile and non-portable
is achieved and fcntl()
will not fail. It may also set other flags for the open file
description, which could lead to unexpected results.
--
Jilles Tjoelker
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
On Fri, Nov 19, 2010 at 03:21:27PM +, Alexey Dokuchaev wrote:
On Fri, Nov 19, 2010 at 12:56:13PM +, Jilles Tjoelker wrote:
Side effect: printf is now always the builtin version (which behaves
identically to /usr/bin/printf) and cannot be overridden via PATH (except
via
Author: jilles
Date: Fri Nov 19 21:15:06 2010
New Revision: 215547
URL: http://svn.freebsd.org/changeset/base/215547
Log:
sh: Add another simple test for the wait builtin.
Added:
head/tools/regression/bin/sh/builtins/wait3.0 (contents, props changed)
Added:
Author: jilles
Date: Fri Nov 19 22:25:32 2010
New Revision: 215550
URL: http://svn.freebsd.org/changeset/base/215550
Log:
sh: Add a test that manipulates various long strings.
It is quite effective at detecting mistakes in memalloc.c and code using it.
It is somewhat slow, but some of
Author: jilles
Date: Sat Nov 20 14:14:52 2010
New Revision: 215567
URL: http://svn.freebsd.org/changeset/base/215567
Log:
sh: Code size optimizations to buffered output.
This is mainly less use of the outc macro.
No functional change is intended, but code size is about 2K less on
Author: jilles
Date: Sat Nov 20 14:30:28 2010
New Revision: 215568
URL: http://svn.freebsd.org/changeset/base/215568
Log:
sh: Remove the check that alpha/name/in_name chars are not CTL* bytes.
Since is_alpha/is_name/is_in_name were made ASCII-only, this can no longer
happen.
Author: jilles
Date: Sat Nov 20 16:46:16 2010
New Revision: 215572
URL: http://svn.freebsd.org/changeset/base/215572
Log:
MFC r215183: Make POLL_ERR and POLL_HUP different.
The kernel currently does not generate any of the POLL_* constants, but
some applications use them and break if
Author: jilles
Date: Sat Nov 20 16:56:39 2010
New Revision: 215573
URL: http://svn.freebsd.org/changeset/base/215573
Log:
MFC r215022: test: Move tests to tools/regression/bin/test.
Convert the tests to the perl prove format.
Remove obsolete TEST.README (results of an old TEST.sh for some
Author: jilles
Date: Sat Nov 20 19:37:33 2010
New Revision: 215584
URL: http://svn.freebsd.org/changeset/base/215584
Log:
MFC r215184: sh: Remove unused man page for echo builtin.
The information in sh(1) about the echo builtin is equivalent, though less
extensive.
The echo(1) man
Author: jilles
Date: Sat Nov 20 19:39:12 2010
New Revision: 215586
URL: http://svn.freebsd.org/changeset/base/215586
Log:
MFC r215211: echo(1): Clarify portability and mention literal -- handling.
Modified:
stable/8/bin/echo/echo.1
Directory Properties:
stable/8/bin/echo/ (props changed)
On Sun, Nov 21, 2010 at 12:42:24PM +, Gavin Atkinson wrote:
On Sat, 20 Nov 2010, Jilles Tjoelker wrote:
Author: jilles
Date: Sat Nov 20 16:46:16 2010
New Revision: 215572
URL: http://svn.freebsd.org/changeset/base/215572
Log:
MFC r215183: Make POLL_ERR and POLL_HUP different
Author: jilles
Date: Sun Nov 21 17:12:27 2010
New Revision: 215638
URL: http://svn.freebsd.org/changeset/base/215638
Log:
MFC r215184: sh: Remove unused man page for echo builtin.
The information in sh(1) about the echo builtin is equivalent, though less
extensive.
The echo(1) man
Author: jilles
Date: Sun Nov 21 17:14:22 2010
New Revision: 215639
URL: http://svn.freebsd.org/changeset/base/215639
Log:
MFC r215211: echo(1): Clarify portability and mention literal -- handling.
Modified:
stable/7/bin/echo/echo.1
Directory Properties:
stable/7/bin/echo/ (props changed)
Author: jilles
Date: Mon Nov 22 23:49:06 2010
New Revision: 215727
URL: http://svn.freebsd.org/changeset/base/215727
Log:
sh: Fix confusing behaviour if chdir succeeded but getcwd failed in cd -P.
If getcwd fails, do not treat this as an error, but print a warning and
unset PWD. This is
Author: jilles
Date: Tue Nov 23 20:46:06 2010
New Revision: 215766
URL: http://svn.freebsd.org/changeset/base/215766
Log:
sh: Pass multiple bytes at a time to lex.
This speeds up the expansion/arith6.0 test considerably.
Modified:
head/bin/sh/arith_lex.l
Modified:
Author: jilles
Date: Tue Nov 23 22:17:39 2010
New Revision: 215783
URL: http://svn.freebsd.org/changeset/base/215783
Log:
sh: Code size optimizations to stack string memory allocation:
* Prefer one CHECKSTRSPACE with multiple USTPUTC to multiple STPUTC.
* Add STPUTS macro (based on
Author: jilles
Date: Sun Nov 28 22:49:58 2010
New Revision: 216019
URL: http://svn.freebsd.org/changeset/base/216019
Log:
sh: Make the test for cd/pwd with long pathnames more useful:
* Use $(getconf PATH_MAX /) to make sure we actually exercise the hard part
* Delete our test area even if
it requests the data. The kernel can then continue to use
monotonic time internally (which I agree is better).
--
Jilles Tjoelker
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail
Author: jilles
Date: Wed Dec 1 23:26:32 2010
New Revision: 216100
URL: http://svn.freebsd.org/changeset/base/216100
Log:
sh(1): Document that command's -p option also works with -v/-V.
This was implemented in r201343.
Modified:
head/bin/sh/sh.1
Modified: head/bin/sh/sh.1
Author: jilles
Date: Fri Dec 3 23:24:27 2010
New Revision: 216168
URL: http://svn.freebsd.org/changeset/base/216168
Log:
sh(1): Clean up documentation of built-in commands.
Make sure all built-in commands are in the subsection named such, except
exp, let and wordexp which are
Author: jilles
Date: Sun Dec 5 16:09:03 2010
New Revision: 216199
URL: http://svn.freebsd.org/changeset/base/216199
Log:
sh: jobs -p: Do not ask the kernel for the pgid.
The getpgid() call will fail if the first process in the job has already
terminated, resulting in output of -1.
Author: jilles
Date: Sun Dec 5 21:53:29 2010
New Revision: 216208
URL: http://svn.freebsd.org/changeset/base/216208
Log:
sh: Avoid marking a job as done before it is fully created.
In r208489, I added code to reap zombies when forking new processes, to
limit the amount of zombies.
Author: jilles
Date: Sun Dec 5 22:37:01 2010
New Revision: 216217
URL: http://svn.freebsd.org/changeset/base/216217
Log:
sh: Improve jobs output of pipelines.
If describing the status of a pipeline, write all elements of the pipeline
and show the status of the last process (which would
Author: jilles
Date: Sun Dec 5 22:56:46 2010
New Revision: 216220
URL: http://svn.freebsd.org/changeset/base/216220
Log:
sh: POSIX says there should not be a space between Done and (exitstatus).
(On the other hand, (core dumped) does need a space and so does [1] +.)
Modified:
Author: jilles
Date: Mon Dec 6 23:49:27 2010
New Revision: 216246
URL: http://svn.freebsd.org/changeset/base/216246
Log:
sh: Improve internal-representation-to-text code to avoid binary output.
The code to translate the internal representation to text did not know about
various
Author: jilles
Date: Wed Dec 8 22:13:27 2010
New Revision: 216310
URL: http://svn.freebsd.org/changeset/base/216310
Log:
printf: Remove support for building as a csh builtin.
The #define BUILTIN was for building as a csh (not tcsh) builtin.
Given that csh was replaced by tcsh years ago
Author: jilles
Date: Wed Dec 8 22:54:18 2010
New Revision: 216311
URL: http://svn.freebsd.org/changeset/base/216311
Log:
printf: Test that the -- option terminator works.
Added:
head/tools/regression/usr.bin/printf/regress.m5.out (contents, props
changed)
Modified:
Author: jilles
Date: Sat Dec 11 17:47:27 2010
New Revision: 216380
URL: http://svn.freebsd.org/changeset/base/216380
Log:
sh: Use vsnprintf() rather than crafting our own in fmtstr().
Add INTOFF/INTON as longjmp out of vsnprintf may cause memory leaks or
undefined behaviour.
Modified:
Author: jilles
Date: Sat Dec 11 22:13:29 2010
New Revision: 216384
URL: http://svn.freebsd.org/changeset/base/216384
Log:
sh: Replace some macros and repeated code in expand.c with functions.
No functional change is intended, but the binary is about 1K smaller on
i386.
Modified:
Author: jilles
Date: Sun Dec 12 00:07:27 2010
New Revision: 216387
URL: http://svn.freebsd.org/changeset/base/216387
Log:
sh: Remove the herefd hack.
The herefd hack wrote out partial here documents while expanding them. It
seems unnecessary complication given that other expansions just
Author: jilles
Date: Sun Dec 12 16:56:16 2010
New Revision: 216395
URL: http://svn.freebsd.org/changeset/base/216395
Log:
sh: Add a test for r216387 (long arithmetic expression in here document).
Added:
head/tools/regression/bin/sh/expansion/arith7.0 (contents, props changed)
Added:
Author: jilles
Date: Sun Dec 12 22:59:34 2010
New Revision: 216400
URL: http://svn.freebsd.org/changeset/base/216400
Log:
sh: Various simplifications to jobs.c:
* Prefer kill(-X) to killpg(X).
* Remove some dead code.
* No additional SIGINT is needed if int_pending() is already true.
(). Although I plan
to clean up usr.bin/printf slightly after the n$ stuff is committed, I
do not plan on adding things to sh that will allow exit() emulation in
builtins.
Other people have already said things about sysexits.h.
--
Jilles Tjoelker
___
svn
Author: jilles
Date: Thu Dec 16 23:28:20 2010
New Revision: 216496
URL: http://svn.freebsd.org/changeset/base/216496
Log:
sh: Fix corruption of command substitutions with special chars after newline
The CTLESC byte to protect a special character was output before instead of
after a
Author: jilles
Date: Sat Dec 18 23:03:51 2010
New Revision: 216547
URL: http://svn.freebsd.org/changeset/base/216547
Log:
sh: arith: Disallow decimal constants starting with 0 (containing 8 or 9).
Constants in arithmetic starting with 0 should be octal only.
This avoids the following
Author: jilles
Date: Mon Dec 20 23:06:57 2010
New Revision: 216606
URL: http://svn.freebsd.org/changeset/base/216606
Log:
sh: Make warnings in the printf builtin non-fatal, like in the program.
The #define for warnx now behaves much like the libc function (except that
it uses sh command
Author: jilles
Date: Tue Dec 21 20:47:06 2010
New Revision: 216622
URL: http://svn.freebsd.org/changeset/base/216622
Log:
sh: Add a function to print warnings (with command name and newline).
This is like error() but without raising an exception.
It is particularly useful as a replacement
Author: jilles
Date: Tue Dec 21 22:47:34 2010
New Revision: 216629
URL: http://svn.freebsd.org/changeset/base/216629
Log:
sh: Add kill builtin.
This allows specifying a %job (which is equivalent to the corresponding
process group).
Additionally, it improves reliability of kill from
Author: jilles
Date: Tue Dec 21 22:48:56 2010
New Revision: 216630
URL: http://svn.freebsd.org/changeset/base/216630
Log:
sh(1): Explain why it is a bad idea to use aliases in scripts.
Modified:
head/bin/sh/sh.1
Modified: head/bin/sh/sh.1
Author: jilles
Date: Sun Dec 26 13:25:47 2010
New Revision: 216706
URL: http://svn.freebsd.org/changeset/base/216706
Log:
sh: Allow arbitrary large numbers in CHECKSTRSPACE.
Reduce stack string API somewhat and simplify code.
Add a check for integer overflow of the stack string length
Author: jilles
Date: Sun Dec 26 13:41:53 2010
New Revision: 216707
URL: http://svn.freebsd.org/changeset/base/216707
Log:
sh: Fix integer overflow check, it checked an uninitialized variable.
Modified:
head/bin/sh/memalloc.c
Modified: head/bin/sh/memalloc.c
Author: jilles
Date: Mon Dec 27 22:18:27 2010
New Revision: 216743
URL: http://svn.freebsd.org/changeset/base/216743
Log:
sh: Simplify stack string code slightly.
Maintain a pointer to the end of the stack string area instead of how much
space is left. This simplifies the macros in
Author: jilles
Date: Tue Dec 28 14:58:08 2010
New Revision: 216763
URL: http://svn.freebsd.org/changeset/base/216763
Log:
sh: Add test for optimized command substitution.
This test verifies that certain expansions without side effects do not
cause the command substitution to be executed
Author: jilles
Date: Tue Dec 28 21:27:08 2010
New Revision: 216778
URL: http://svn.freebsd.org/changeset/base/216778
Log:
sh: Don't do optimized command substitution if expansions have side effects.
Before considering to execute a command substitution in the same process,
check if any of
Author: jilles
Date: Wed Dec 29 19:39:51 2010
New Revision: 216806
URL: http://svn.freebsd.org/changeset/base/216806
Log:
sh: Properly restore exception handler in fc.
If SIGINT arrived at exactly the right moment (unlikely), an exception
handler in a no longer active stack frame would
Author: jilles
Date: Wed Dec 29 21:38:00 2010
New Revision: 216809
URL: http://svn.freebsd.org/changeset/base/216809
Log:
printf: Do not use sh memory functions in sh builtin.
These functions throw exceptions if they fail, possibly causing memory
leaks. The normal out-of-memory handling
Author: jilles
Date: Thu Dec 30 15:04:59 2010
New Revision: 216819
URL: http://svn.freebsd.org/changeset/base/216819
Log:
sh: Add two tests for special cases in command substitution that already
work in stable/8.
Added:
head/tools/regression/bin/sh/expansion/cmdsubst8.0 (contents, props
Author: jilles
Date: Thu Dec 30 22:33:55 2010
New Revision: 216826
URL: http://svn.freebsd.org/changeset/base/216826
Log:
sh: Avoid side effects from builtins in optimized command substitution.
Change the criterion for builtins to be safe to execute in the same process
in optimized
and halt's default action, and
fastboot(8)/fasthalt(8) could also retain the current behaviour.
I would be in favour of this change.
--
Jilles Tjoelker
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
Author: jilles
Date: Fri Dec 31 18:20:17 2010
New Revision: 216851
URL: http://svn.freebsd.org/changeset/base/216851
Log:
sh: Check if dup2 for redirection from/to a file succeeds.
A failure (e.g. caused by ulimit -n being set very low) is a redirection
error.
Example:
ulimit -n
-user.
If it is a bug in /etc/rc.d/mixer, /etc/rc.d/mixer should somehow track
if it has been started, and ignore any stops if not. This seems less
general than changing init.
If it is a bug in /etc/rc, it should do the above tracking somehow for
all scripts.
--
Jilles Tjoelker
Author: jilles
Date: Sat Jan 1 13:26:18 2011
New Revision: 216870
URL: http://svn.freebsd.org/changeset/base/216870
Log:
sh: Check readonly status for assignments on regular builtins.
An error message is written, the builtin is not executed, nonzero exit
status is returned but the shell
On Fri, Dec 31, 2010 at 02:57:17PM -0700, Warner Losh wrote:
On 12/31/2010 07:43, Jilles Tjoelker wrote:
On Thu, Dec 30, 2010 at 06:06:31PM +, Pawel Jakub Dawidek wrote:
Author: pjd
Date: Thu Dec 30 18:06:31 2010
New Revision: 216823
URL: http://svn.freebsd.org/changeset/base/216823
Author: jilles
Date: Sat Jan 1 15:25:15 2011
New Revision: 216871
URL: http://svn.freebsd.org/changeset/base/216871
Log:
sh: Test that exit $? replaces the original exit status in an EXIT trap.
Added:
head/tools/regression/bin/sh/builtins/exit1.0 (contents, props changed)
Added:
Author: jilles
Date: Wed Jan 5 23:17:29 2011
New Revision: 217035
URL: http://svn.freebsd.org/changeset/base/217035
Log:
sh: Do not call exitshell() from evalcommand() unless evalcommand() forked
itself.
This ensures that certain traps caused by builtins are executed.
Added:
Author: jilles
Date: Sat Jan 8 00:03:18 2011
New Revision: 217133
URL: http://svn.freebsd.org/changeset/base/217133
Log:
sed: Try hard links to make -i target available continually.
When creating a backup file, sed renamed the original before renaming the
changed copy into place,
Jilles Tjoelker
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#notice, this list of conditions
Author: jilles
Date: Sat Jan 8 23:00:38 2011
New Revision: 217172
URL: http://svn.freebsd.org/changeset/base/217172
Log:
sh: Add simple test for 'exit' without parameters.
Added:
head/tools/regression/bin/sh/builtins/exit2.8 (contents, props changed)
Added:
Author: jilles
Date: Sat Jan 8 23:08:13 2011
New Revision: 217175
URL: http://svn.freebsd.org/changeset/base/217175
Log:
sh: Make exit without parameters from EXIT trap POSIX-compliant.
It should use the original exit status, just like falling off the
end of the trap handler.
Author: jilles
Date: Sun Jan 9 21:07:30 2011
New Revision: 217206
URL: http://svn.freebsd.org/changeset/base/217206
Log:
sh: Remove special %builtin PATH entry.
All builtins are now always found before a PATH search.
Most ash derivatives have an undocumented feature where the presence
Author: jilles
Date: Sat Nov 21 14:28:32 2009
New Revision: 199629
URL: http://svn.freebsd.org/changeset/base/199629
Log:
sh: Some changes to stderr flushing:
* increase buffer size from 100 to 256 bytes
* remove implied flush from out2str(), in particular this avoids unnecessary
Author: jilles
Date: Sat Nov 21 20:44:34 2009
New Revision: 199641
URL: http://svn.freebsd.org/changeset/base/199641
Log:
trap: do not consider a bad signal name a fatal error.
POSIX explicitly prescribes this.
Continue processing any other signals and return status 1.
Added:
Author: jilles
Date: Sun Nov 22 14:04:20 2009
New Revision: 199647
URL: http://svn.freebsd.org/changeset/base/199647
Log:
sh: Ensure the same command input file is on top after executing a builtin.
This avoids weirdness when 'fc -e vi' or the like is done and there is a
syntax error in
Author: jilles
Date: Sun Nov 22 18:23:30 2009
New Revision: 199660
URL: http://svn.freebsd.org/changeset/base/199660
Log:
Fix various things about SIGINT handling:
* exception handlers are now run with interrupts disabled, which avoids
many race conditions
* fix some cases where SIGINT
Author: jilles
Date: Sun Nov 29 22:33:59 2009
New Revision: 199953
URL: http://svn.freebsd.org/changeset/base/199953
Log:
Fix some cases where file descriptors from redirections leak to programs.
- Redirecting fds that were not open before kept two copies of the
redirected file.
Author: jilles
Date: Sun Nov 29 22:58:10 2009
New Revision: 199955
URL: http://svn.freebsd.org/changeset/base/199955
Log:
Disable job control when running 'sh -i' in the testsuite.
Job control tty manipulations sometimes cause the tests to stop (SIGTTOU
and the like) when run from the
Author: jilles
Date: Sun Dec 6 22:01:45 2009
New Revision: 200188
URL: http://svn.freebsd.org/changeset/base/200188
Log:
MFC r198963: sh: Fix memory leak when using a variable in arithmetic
like $((x)).
Modified:
stable/8/bin/sh/arith_lex.l
Directory Properties:
stable/8/bin/sh/
Author: jilles
Date: Sun Dec 6 22:14:58 2009
New Revision: 200189
URL: http://svn.freebsd.org/changeset/base/200189
Log:
MFC r198406: wordexp(3): fix some bugs with signals and long outputs
* retry various system calls on EINTR
* retry the rest after a short read (common if there is
Author: jilles
Date: Tue Dec 8 19:01:05 2009
New Revision: 200269
URL: http://svn.freebsd.org/changeset/base/200269
Log:
MFC r198963: sh: Fix memory leak when using a variable in arithmetic
like $((x)).
Modified:
stable/7/bin/sh/arith_lex.l
Directory Properties:
stable/7/bin/sh/
Author: jilles
Date: Tue Dec 8 20:48:06 2009
New Revision: 200274
URL: http://svn.freebsd.org/changeset/base/200274
Log:
sem_init(3): document process shared semaphores and their restrictions
Modified:
head/lib/libc/gen/sem_init.3
Modified: head/lib/libc/gen/sem_init.3
On Tue, Dec 08, 2009 at 04:45:37PM -0500, John Baldwin wrote:
On Tuesday 08 December 2009 3:48:06 pm Jilles Tjoelker wrote:
Author: jilles
Date: Tue Dec 8 20:48:06 2009
New Revision: 200274
URL: http://svn.freebsd.org/changeset/base/200274
Log:
sem_init(3): document process shared
Author: jilles
Date: Tue Dec 15 21:02:29 2009
New Revision: 200589
URL: http://svn.freebsd.org/changeset/base/200589
Log:
cpuset(2): fix a typo and a markup error in the man page
MFC after:1 week
Modified:
head/lib/libc/sys/cpuset.2
Modified: head/lib/libc/sys/cpuset.2
.
--
Jilles Tjoelker
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org
Author: jilles
Date: Sun Dec 20 20:51:20 2009
New Revision: 200760
URL: http://svn.freebsd.org/changeset/base/200760
Log:
MFC r198173: sh: show more info about syntax errors in command substitution:
the line number where the command substitution started.
This applies to both the $() and ``
Author: jilles
Date: Mon Dec 21 22:16:07 2009
New Revision: 200818
URL: http://svn.freebsd.org/changeset/base/200818
Log:
rc.subr: Use pwait in wait_for_pids.
This waits for the requested process(es) to terminate, rather than polling
with an interval of 2 seconds.
If pwait is not
Author: jilles
Date: Tue Dec 22 13:45:29 2009
New Revision: 200836
URL: http://svn.freebsd.org/changeset/base/200836
Log:
MFC r200589: cpuset(2): fix a typo and a markup error in the man page
Modified:
stable/8/lib/libc/sys/cpuset.2
Directory Properties:
stable/8/lib/libc/ (props
Author: jilles
Date: Tue Dec 22 13:49:37 2009
New Revision: 200837
URL: http://svn.freebsd.org/changeset/base/200837
Log:
MFC r200589: cpuset(2): fix a typo and a markup error in the man page
Modified:
stable/7/lib/libc/sys/cpuset.2
Directory Properties:
stable/7/lib/libc/ (props
Author: jilles
Date: Wed Dec 23 22:59:03 2009
New Revision: 200927
URL: http://svn.freebsd.org/changeset/base/200927
Log:
MFC r199458: Add pwait utility, which waits for any process to terminate.
This is similar to the Solaris utility of the same name.
Some use cases:
* rc.subr's
Author: jilles
Date: Thu Dec 24 15:14:22 2009
New Revision: 200943
URL: http://svn.freebsd.org/changeset/base/200943
Log:
sh: Remove setting variables from dotcmd/exportcmd.
It is already done by evalcommand(), unless special-ness has been removed,
in which case variable assignments
Author: jilles
Date: Thu Dec 24 18:41:14 2009
New Revision: 200956
URL: http://svn.freebsd.org/changeset/base/200956
Log:
sh: Constify various strings.
Most of this is adding const keywords, but setvar() in var.c had to be
changed somewhat more.
Modified:
head/bin/sh/alias.c
Author: jilles
Date: Thu Dec 24 20:55:14 2009
New Revision: 200967
URL: http://svn.freebsd.org/changeset/base/200967
Log:
sh: Add some __dead2 to indicate functions that do not return.
Modified:
head/bin/sh/error.c
head/bin/sh/error.h
head/bin/sh/exec.h
head/bin/sh/trap.h
Modified:
Author: jilles
Date: Fri Dec 25 15:29:18 2009
New Revision: 200988
URL: http://svn.freebsd.org/changeset/base/200988
Log:
sh: Do not consider a tilde-prefix with expansions in it.
That is, do not do tilde expansion if any of the CTL* bytes (\201-\210), not
only CTLESC and CTLQUOTEMARK,
Author: jilles
Date: Fri Dec 25 20:21:35 2009
New Revision: 200998
URL: http://svn.freebsd.org/changeset/base/200998
Log:
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
Author: jilles
Date: Fri Dec 25 21:28:16 2009
New Revision: 201002
URL: http://svn.freebsd.org/changeset/base/201002
Log:
MFC r199458: Add pwait utility, which waits for any process to terminate.
This is similar to the Solaris utility of the same name.
Some use cases:
* rc.subr's
Author: jilles
Date: Sat Dec 26 13:54:34 2009
New Revision: 201020
URL: http://svn.freebsd.org/changeset/base/201020
Log:
Remove declaration of function that no longer exists.
Modified:
head/bin/sh/output.h
Modified: head/bin/sh/output.h
Author: jilles
Date: Sun Dec 27 18:04:05 2009
New Revision: 201053
URL: http://svn.freebsd.org/changeset/base/201053
Log:
sh: Various warning fixes (from WARNS=6 NO_WERROR=1):
- const
- initializations to silence -Wuninitialized (it was safe anyway)
- remove nested extern declarations
-
Author: jilles
Date: Sun Dec 27 18:32:44 2009
New Revision: 201056
URL: http://svn.freebsd.org/changeset/base/201056
Log:
sh: Change varinit to use const better.
Modified:
head/bin/sh/var.c
Modified: head/bin/sh/var.c
Author: jilles
Date: Wed Dec 30 15:44:36 2009
New Revision: 201258
URL: http://svn.freebsd.org/changeset/base/201258
Log:
Remove the current directory from _PATH_STDPATH.
Modified:
head/include/paths.h
Modified: head/include/paths.h
Author: jilles
Date: Wed Dec 30 15:59:40 2009
New Revision: 201259
URL: http://svn.freebsd.org/changeset/base/201259
Log:
sh: arith: Return only 0 and 1 from and ||.
This agrees with C, POSIX and other shells.
Added:
head/tools/regression/bin/sh/expansion/arith1.0 (contents, props
Author: jilles
Date: Wed Dec 30 17:16:49 2009
New Revision: 201262
URL: http://svn.freebsd.org/changeset/base/201262
Log:
Fix memory leak when parsing backticks (``).
Modified:
head/bin/sh/parser.c
Modified: head/bin/sh/parser.c
Author: jilles
Date: Wed Dec 30 21:46:33 2009
New Revision: 201283
URL: http://svn.freebsd.org/changeset/base/201283
Log:
sh: Ensure funcnest is decremented if there was an error in the function.
This will be important when things like 'command eval f' will be possible.
Currently, the
601 - 700 of 1758 matches
Mail list logo