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
Author: jilles
Date: Thu Dec 31 16:13:33 2009
New Revision: 201343
URL: http://svn.freebsd.org/changeset/base/201343
Log:
sh: Allow command -pv and command -pV (lookup using _PATH_STDPATH).
Added:
head/tools/regression/bin/sh/builtins/command6.0 (contents, props changed)
Author: jilles
Date: Thu Dec 31 17:44:24 2009
New Revision: 201344
URL: http://svn.freebsd.org/changeset/base/201344
Log:
sh: Use PATH= assignment in type.
Example:
PATH=/var/empty; PATH=/bin type ls
Added:
head/tools/regression/bin/sh/builtins/type2.0 (contents, props changed)
Author: jilles
Date: Thu Dec 31 22:33:58 2009
New Revision: 201355
URL: http://svn.freebsd.org/changeset/base/201355
Log:
sh(1): document ulimit -w (swapuse rlimit).
MFC after:1 week
Modified:
head/bin/sh/sh.1
Modified: head/bin/sh/sh.1
Author: jilles
Date: Fri Jan 1 18:17:46 2010
New Revision: 201366
URL: http://svn.freebsd.org/changeset/base/201366
Log:
sh: Fix some bugs with backquoted builtins:
- correctly handle error output in $(builtin 21), clarify out1/out2 vs
output/errout in the code
- treat all builtins as
Author: jilles
Date: Sun Jan 3 12:50:27 2010
New Revision: 201428
URL: http://svn.freebsd.org/changeset/base/201428
Log:
sh: Add a regression test that tries out all arithmetic ops.
MFC after:1 week
Added:
head/tools/regression/bin/sh/expansion/arith2.0 (contents, props changed)
Author: jilles
Date: Sun Jan 3 15:01:38 2010
New Revision: 201431
URL: http://svn.freebsd.org/changeset/base/201431
Log:
sh: Send the not found message for builtin cmd to redirected fd 2.
Added:
head/tools/regression/bin/sh/builtins/builtin1.0 (contents, props changed)
Modified:
Author: jilles
Date: Fri Jan 8 14:30:03 2010
New Revision: 201787
URL: http://svn.freebsd.org/changeset/base/201787
Log:
MFC r201354: sh(1): Correct two places where $@ lacked necessary quotes.
Modified:
stable/8/bin/sh/sh.1
Directory Properties:
stable/8/bin/sh/ (props changed)
Author: jilles
Date: Fri Jan 8 14:33:03 2010
New Revision: 201788
URL: http://svn.freebsd.org/changeset/base/201788
Log:
MFC r201355: sh(1): document ulimit -w (swapuse rlimit).
Modified:
stable/8/bin/sh/sh.1
Directory Properties:
stable/8/bin/sh/ (props changed)
Modified:
Author: jilles
Date: Fri Jan 8 16:28:17 2010
New Revision: 201802
URL: http://svn.freebsd.org/changeset/base/201802
Log:
MFC r201354: sh(1): Correct two places where $@ lacked necessary quotes.
Modified:
stable/7/bin/sh/sh.1
Directory Properties:
stable/7/bin/sh/ (props changed)
Author: jilles
Date: Tue Aug 3 22:17:29 2010
New Revision: 210829
URL: http://svn.freebsd.org/changeset/base/210829
Log:
sh: Return 0 from eval if no command was given.
This makes a difference if there is a command substitution.
To make this work, evalstring() has been changed to set
Author: jilles
Date: Sun Aug 8 13:43:20 2010
New Revision: 211069
URL: http://svn.freebsd.org/changeset/base/211069
Log:
MFC r210734: Allow starting ipmon if ipnat is enabled but ipfilter is not
(in /etc/rc.conf).
This fixes an apparent confusion between test(1) and sh(1) syntax for
Author: jilles
Date: Sun Aug 8 13:45:47 2010
New Revision: 211070
URL: http://svn.freebsd.org/changeset/base/211070
Log:
MFC r210734: Allow starting ipmon if ipnat is enabled but ipfilter is not
(in /etc/rc.conf).
This fixes an apparent confusion between test(1) and sh(1) syntax for
Author: jilles
Date: Sun Aug 8 14:13:10 2010
New Revision: 211072
URL: http://svn.freebsd.org/changeset/base/211072
Log:
MFC r210734: Allow starting ipmon if ipnat is enabled but ipfilter is not
(in /etc/rc.conf).
This fixes an apparent confusion between test(1) and sh(1) syntax for
Author: jilles
Date: Sun Aug 8 17:03:23 2010
New Revision: 211080
URL: http://svn.freebsd.org/changeset/base/211080
Log:
sh: Add more testcases for ${var:-word}.
Whether POSIX requires these is unclear.
They pass with 8-stable sh as well.
Added:
Author: jilles
Date: Sun Aug 8 21:04:27 2010
New Revision: 211084
URL: http://svn.freebsd.org/changeset/base/211084
Log:
Remove unnecessary duplicate letters in mksyntax.c,
the table elements would just be overwritten twice.
Modified:
head/bin/sh/mksyntax.c
Modified:
()'s pointers, so that the cast may indeed fail (the kernel
copyin() imposes no alignment restriction).
--
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
Author: jilles
Date: Tue Aug 10 22:45:59 2010
New Revision: 211155
URL: http://svn.freebsd.org/changeset/base/211155
Log:
sh: Fix heap-based buffer overflow in pathname generation.
The buffer for generated pathnames could be too small in some cases. It
happened to be always at least
Author: jilles
Date: Fri Aug 13 13:36:18 2010
New Revision: 211281
URL: http://svn.freebsd.org/changeset/base/211281
Log:
sh: Fix shadowing of sigset.
Modified:
head/bin/sh/error.c
Modified: head/bin/sh/error.c
==
Author: jilles
Date: Fri Aug 13 20:29:43 2010
New Revision: 211287
URL: http://svn.freebsd.org/changeset/base/211287
Log:
sh: Add a forgotten const.
Modified:
head/bin/sh/eval.c
Modified: head/bin/sh/eval.c
==
---
Author: jilles
Date: Sun Aug 15 17:14:05 2010
New Revision: 211341
URL: http://svn.freebsd.org/changeset/base/211341
Log:
sh: Test that all bytes from 1 to 127 can be used in IFS.
This also passes on stable/8.
Added:
head/tools/regression/bin/sh/expansion/ifs2.0 (contents, props
Author: jilles
Date: Sun Aug 15 21:06:53 2010
New Revision: 211349
URL: http://svn.freebsd.org/changeset/base/211349
Log:
sh: Fix break/continue/return sometimes not skipping the rest of dot script.
In our implementation and most others, a break or continue in a dot script
can break or
Author: jilles
Date: Mon Aug 16 17:18:08 2010
New Revision: 211399
URL: http://svn.freebsd.org/changeset/base/211399
Log:
sh: Get rid of unnecessary non-standard empty lists.
POSIX does not allow constructs like:
if cmd; then fi
{ }
Add a colon dummy command, except in a test
Author: jilles
Date: Mon Aug 16 21:14:49 2010
New Revision: 211405
URL: http://svn.freebsd.org/changeset/base/211405
Log:
sh: Split off a more dubious test from parser/heredoc2.0.
Added:
head/tools/regression/bin/sh/parser/heredoc8.0 (contents, props changed)
Modified:
Author: jilles
Date: Mon Aug 16 22:23:19 2010
New Revision: 211408
URL: http://svn.freebsd.org/changeset/base/211408
Log:
sh: Reduce unnecessary testsuite failures with other shells.
Modified:
head/tools/regression/bin/sh/builtins/fc1.0
head/tools/regression/bin/sh/builtins/fc2.0
Author: jilles
Date: Wed Aug 18 20:26:50 2010
New Revision: 211467
URL: http://svn.freebsd.org/changeset/base/211467
Log:
sh: Add a test for break from a trap action.
Added:
head/tools/regression/bin/sh/builtins/break2.0 (contents, props changed)
Author: jilles
Date: Sat Aug 21 20:48:09 2010
New Revision: 211592
URL: http://svn.freebsd.org/changeset/base/211592
Log:
MFC r211155: sh: Fix heap-based buffer overflow in pathname generation.
The buffer for generated pathnames could be too small in some cases. It
happened to be always
Author: jilles
Date: Sun Aug 22 11:04:30 2010
New Revision: 211609
URL: http://svn.freebsd.org/changeset/base/211609
Log:
sh: Add a test for breaking from a loop outside the current function.
It is unwise to rely on this but I'd like to know if this would break.
Added:
Author: jilles
Date: Sun Aug 22 11:07:46 2010
New Revision: 211612
URL: http://svn.freebsd.org/changeset/base/211612
Log:
Fix keyword expansion properties.
Modified:
Directory Properties:
head/tools/regression/bin/sh/builtins/break3.0 (props changed)
Author: jilles
Date: Sun Aug 22 13:04:00 2010
New Revision: 211621
URL: http://svn.freebsd.org/changeset/base/211621
Log:
sh(1): Add a brief summary of arithmetic expressions.
Modified:
head/bin/sh/sh.1
Modified: head/bin/sh/sh.1
Author: jilles
Date: Sun Aug 22 13:09:12 2010
New Revision: 211622
URL: http://svn.freebsd.org/changeset/base/211622
Log:
sh: Test that all bytes from 128 to 255 can be used in IFS.
To avoid multibyte issues, this test forces ISO8859-1 charset.
This also passes on stable/8.
Added:
) man page is so long that I do not expect it to be read in its
entirety often. Therefore I have put the description of this bug near
the feature so that it is more likely to be seen at the appropriate
time.
--
Jilles Tjoelker
___
svn-src-all@freebsd.org
Author: jilles
Date: Sun Aug 22 21:18:21 2010
New Revision: 211646
URL: http://svn.freebsd.org/changeset/base/211646
Log:
sh: Remove remnants of '!!' to negate pattern.
This Almquist extension was disabled long ago.
In pathname generation, components starting with '!!' were treated as
On Mon, Aug 23, 2010 at 12:33:14AM -0700, Brian Somers wrote:
On Sun, 22 Aug 2010 11:04:30 + (UTC) Jilles Tjoelker jil...@freebsd.org
wrote:
Author: jilles
Date: Sun Aug 22 11:04:30 2010
New Revision: 211609
URL: http://svn.freebsd.org/changeset/base/211609
Log:
sh: Add
Author: jilles
Date: Sun Aug 29 20:53:24 2010
New Revision: 211973
URL: http://svn.freebsd.org/changeset/base/211973
Log:
sh: Weaken builtins/command4 test to only require a nonzero exit status.
This matches what is in POSIX; various other shells use different exit
statuses.
Note
)
+ goto out;
/*
* SIGKILL sets process running.
* It will die elsewhere.
Hmm, shouldn't SIGKILL kill right away regardless of debuggers?
--
Jilles Tjoelker
Author: jilles
Date: Wed Sep 1 19:49:24 2010
New Revision: 212111
URL: http://svn.freebsd.org/changeset/base/212111
Log:
MFC r210736: sh: Do not enter consecutive duplicates into the history.
This simply sets a flag in libedit. It has a shortcoming in that it does not
apply to
Author: jilles
Date: Wed Sep 1 21:51:29 2010
New Revision: 212118
URL: http://svn.freebsd.org/changeset/base/212118
Log:
MFC r211155: sh: Fix heap-based buffer overflow in pathname generation.
The buffer for generated pathnames could be too small in some cases. It
happened to be always
Author: jilles
Date: Fri Sep 3 21:17:33 2010
New Revision: 212187
URL: http://svn.freebsd.org/changeset/base/212187
Log:
sh: Add a test that 'read' leaves the file pointer at the correct place.
Naive buffering would break the common while read x... construct, which did
not appear to be
Author: jilles
Date: Fri Sep 3 21:59:12 2010
New Revision: 212189
URL: http://svn.freebsd.org/changeset/base/212189
Log:
MFC r209652: sh: Remove comment that the comma operator is missing
in arithmetic expansion.
The comma operator is not listed in POSIX.1-2008 XCU 1.1.2.1 Arithmetic
Author: jilles
Date: Fri Sep 3 22:13:54 2010
New Revision: 212190
URL: http://svn.freebsd.org/changeset/base/212190
Log:
sh: Do not use locale for determining if something is a name.
This makes it impossible to use locale-specific characters in variable
names.
Names containing
Author: jilles
Date: Sat Sep 4 21:23:46 2010
New Revision: 212214
URL: http://svn.freebsd.org/changeset/base/212214
Log:
sh: Get rid of some magic numbers.
MFC after:1 week
Modified:
head/bin/sh/eval.c
Modified: head/bin/sh/eval.c
Author: jilles
Date: Sun Sep 5 16:12:10 2010
New Revision: 212235
URL: http://svn.freebsd.org/changeset/base/212235
Log:
libedit: Try to map Delete to ed-delete-next-char.
This adds a new arrow key delete corresponding to the kD termcap value.
It only works if that is a sequence such as
Author: jilles
Date: Sun Sep 5 21:12:48 2010
New Revision: 212243
URL: http://svn.freebsd.org/changeset/base/212243
Log:
sh: Improve comments in expand.c.
Modified:
head/bin/sh/expand.c
Modified: head/bin/sh/expand.c
Author: jilles
Date: Sun Sep 5 21:44:50 2010
New Revision: 212244
URL: http://svn.freebsd.org/changeset/base/212244
Log:
printf(1): Clarify that \OOO produces a byte, different %b escape sequences.
Octal escape sequences are expanded to bytes, not characters, and multiple
are required
Author: jilles
Date: Wed Sep 8 18:32:23 2010
New Revision: 212330
URL: http://svn.freebsd.org/changeset/base/212330
Log:
sh: Add simple tests for backslashes in the read builtin.
Added:
head/tools/regression/bin/sh/builtins/read3.0 (contents, props changed)
constants does not belong in
the BUGS section either. They are deliberately not provided, therefore
their omission is not a bug. (One reason is that there is no way to
force termination of such a sequence, unlike C where you can do things
like \x1b c.)
--
Jilles Tjoelker
Author: jilles
Date: Thu Sep 9 21:59:53 2010
New Revision: 212390
URL: http://svn.freebsd.org/changeset/base/212390
Log:
expr(1): Add sh(1) versions of examples, remove an incorrect example.
The three examples are better done using sh(1) itself these days.
The example
expr -- $a
Author: jilles
Date: Fri Sep 10 13:40:31 2010
New Revision: 212417
URL: http://svn.freebsd.org/changeset/base/212417
Log:
sh(1): Remove xrefs for expr(1) and getopt(1).
expr(1) should usually not be used as various forms of parameter expansion
and arithmetic expansion replicate most of
Author: jilles
Date: Fri Sep 10 14:00:27 2010
New Revision: 212418
URL: http://svn.freebsd.org/changeset/base/212418
Log:
test(1): Clarify grammar ambiguity and -a/-o vs shell /||.
Modified:
head/bin/test/test.1
Modified: head/bin/test/test.1
Author: jilles
Date: Fri Sep 10 14:03:58 2010
New Revision: 212419
URL: http://svn.freebsd.org/changeset/base/212419
Log:
test(1): Fix markup, ( and ) must be separate arguments so leave spaces.
MFC after:1 week
Modified:
head/bin/test/test.1
Modified: head/bin/test/test.1
Author: jilles
Date: Sat Sep 11 12:51:01 2010
New Revision: 212464
URL: http://svn.freebsd.org/changeset/base/212464
Log:
MFC r212214: sh: Get rid of some magic numbers.
Modified:
stable/8/bin/sh/eval.c
Directory Properties:
stable/8/bin/sh/ (props changed)
Modified:
Author: jilles
Date: Sat Sep 11 14:15:50 2010
New Revision: 212467
URL: http://svn.freebsd.org/changeset/base/212467
Log:
sh: Apply variable assignments left-to-right in bltinlookup().
Example:
HOME=foo HOME=bar cd
Added:
head/tools/regression/bin/sh/execution/var-assign1.0
Author: jilles
Date: Sat Sep 11 15:07:40 2010
New Revision: 212475
URL: http://svn.freebsd.org/changeset/base/212475
Log:
sh: Fix exit status if return is used within a loop condition.
Added:
head/tools/regression/bin/sh/builtins/return6.4 (contents, props changed)
Author: jilles
Date: Sun Sep 12 22:00:31 2010
New Revision: 212508
URL: http://svn.freebsd.org/changeset/base/212508
Log:
sh: Add __dead2 to two functions that do not return.
Apart from helping static analyzers, this also appears to reduce the size of
the binary slightly.
Modified:
changing its usage output to match that synopsis) if it encounters a
string beginning with '-' other than --.
That would be acceptable.
--
Jilles Tjoelker
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
Author: jilles
Date: Sun Sep 19 16:06:32 2010
New Revision: 212864
URL: http://svn.freebsd.org/changeset/base/212864
Log:
MFC r212417: sh(1): Remove xrefs for expr(1) and getopt(1).
expr(1) should usually not be used as various forms of parameter expansion
and arithmetic expansion
Author: jilles
Date: Sun Sep 19 16:13:47 2010
New Revision: 212865
URL: http://svn.freebsd.org/changeset/base/212865
Log:
MFC r212418: test(1): Clarify grammar ambiguity and -a/-o vs shell /||.
Modified:
stable/8/bin/test/test.1
Directory Properties:
stable/8/bin/test/ (props changed)
Author: jilles
Date: Sun Sep 19 16:15:42 2010
New Revision: 212866
URL: http://svn.freebsd.org/changeset/base/212866
Log:
MFC r212419: test(1): Fix markup, ( and ) must be separate arguments
so leave spaces.
Modified:
stable/8/bin/test/test.1
Directory Properties:
stable/8/bin/test/
701 - 800 of 1758 matches
Mail list logo