Author: jilles
Date: Sat Jan 14 21:54:12 2012
New Revision: 230117
URL: http://svn.freebsd.org/changeset/base/230117
Log:
sh: Fix out of bounds array access when trap is used with an invalid signal.
MFC after:1 week
Modified:
head/bin/sh/trap.c
Modified: head/bin/sh/trap.c
=
Author: jilles
Date: Fri Jan 13 23:32:27 2012
New Revision: 230095
URL: http://svn.freebsd.org/changeset/base/230095
Log:
sh: Properly show "Not a directory" error in cd builtin.
The errno message display added in r92 did not take attempting to
cd to a non-directory or something that
tead. That saves a
system call and removes a possible race condition with fork/exec from
threads or signal handlers.
--
Jilles Tjoelker
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscrib
Author: jilles
Date: Fri Jan 6 23:20:33 2012
New Revision: 229742
URL: http://svn.freebsd.org/changeset/base/229742
Log:
sh: Avoid possible echo options in a testcase.
Modified:
head/tools/regression/bin/sh/builtins/getopts1.0
Modified: head/tools/regression/bin/sh/builtins/getopts1.0
=
Author: jilles
Date: Sun Jan 1 22:17:12 2012
New Revision: 229220
URL: http://svn.freebsd.org/changeset/base/229220
Log:
sh: Make various functions static.
Modified:
head/bin/sh/exec.c
head/bin/sh/exec.h
head/bin/sh/expand.c
head/bin/sh/expand.h
head/bin/sh/histedit.c
head/bin/sh/i
Author: jilles
Date: Sun Jan 1 22:15:38 2012
New Revision: 229219
URL: http://svn.freebsd.org/changeset/base/229219
Log:
sh: Remove unused function scopyn().
Modified:
head/bin/sh/mystring.c
head/bin/sh/mystring.h
Modified: head/bin/sh/mystring.c
==
Author: jilles
Date: Sun Jan 1 20:50:19 2012
New Revision: 229201
URL: http://svn.freebsd.org/changeset/base/229201
Log:
sh: Make patmatch() non-recursive.
Modified:
head/bin/sh/expand.c
Modified: head/bin/sh/expand.c
=
Author: jilles
Date: Thu Dec 29 22:15:18 2011
New Revision: 228972
URL: http://svn.freebsd.org/changeset/base/228972
Log:
libc: Eliminate some relative relocations in file flags table.
Modified:
head/lib/libc/gen/strtofflags.c
Modified: head/lib/libc/gen/strtofflags.c
===
Author: jilles
Date: Wed Dec 28 23:51:17 2011
New Revision: 228943
URL: http://svn.freebsd.org/changeset/base/228943
Log:
sh: Allow quoting ^ and ] in bracket expressions.
Added:
head/tools/regression/bin/sh/builtins/case13.0 (contents, props changed)
Modified:
head/bin/sh/mksyntax.c
Mod
Author: jilles
Date: Wed Dec 28 23:40:46 2011
New Revision: 228942
URL: http://svn.freebsd.org/changeset/base/228942
Log:
sh: Use dirent.d_type in pathname generation.
This improves performance for globs where a slash or another component
follows a component with metacharacters by elimina
Author: jilles
Date: Wed Dec 28 23:30:17 2011
New Revision: 228941
URL: http://svn.freebsd.org/changeset/base/228941
Log:
sh: Cache de->d_namlen in a local variable.
Modified:
head/bin/sh/expand.c
Modified: head/bin/sh/expand.c
Author: jilles
Date: Wed Dec 28 22:10:12 2011
New Revision: 228937
URL: http://svn.freebsd.org/changeset/base/228937
Log:
sh: Do not force special builtins non-special in optimized command subst.
This is not necessary: errors are already caught in evalbackcmd() and
forcelocal handles chan
Author: jilles
Date: Tue Dec 27 23:35:10 2011
New Revision: 228922
URL: http://svn.freebsd.org/changeset/base/228922
Log:
libc: Eliminate some relative relocations in getusershell().
Modified:
head/lib/libc/gen/getusershell.c
Modified: head/lib/libc/gen/getusershell.c
===
Author: jilles
Date: Tue Dec 27 23:28:01 2011
New Revision: 228921
URL: http://svn.freebsd.org/changeset/base/228921
Log:
libc: Eliminate some relative relocations in setlocale().
Modified:
head/lib/libc/locale/setlocale.c
Modified: head/lib/libc/locale/setlocale.c
==
Author: jilles
Date: Sun Dec 25 13:24:48 2011
New Revision: 228873
URL: http://svn.freebsd.org/changeset/base/228873
Log:
sh: Add some testcases for pasting $*/$@ directly to a literal.
This also passes on stable/8.
Added:
head/tools/regression/bin/sh/parameters/positional2.0 (contents
Author: jilles
Date: Sat Dec 17 23:18:14 2011
New Revision: 228669
URL: http://svn.freebsd.org/changeset/base/228669
Log:
du: Allow multiple -HLP options, the last one wins.
This matches 4.4BSD tradition and other utilities with these options and is
required by POSIX (POSIX does not speci
==
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/tools/regression/pipe/pipe-reverse2.c Wed Dec 14 23:26:48 2011
(r228512)
@@ -0,0 +1,67 @@
+/*-
+ * Copyright (c) 2010 Jilles Tjoelker
+ * All rights
Author: jilles
Date: Wed Dec 14 22:26:39 2011
New Revision: 228510
URL: http://svn.freebsd.org/changeset/base/228510
Log:
Fix select/poll/kqueue for write on reverse direction before first write.
The reverse direction of a pipe is lazily allocated on the first write in
that direction (bec
Author: jilles
Date: Mon Dec 5 00:00:47 2011
New Revision: 228269
URL: http://svn.freebsd.org/changeset/base/228269
Log:
libc: Eliminate 13 relative relocations in wctype().
Modified:
head/lib/libc/locale/wctype.c
Modified: head/lib/libc/locale/wctype.c
=
Author: jilles
Date: Mon Nov 28 23:10:53 2011
New Revision: 228109
URL: http://svn.freebsd.org/changeset/base/228109
Log:
test: Add more testcases.
The new testcases pass even on old stable/7, but some other implementations
manage to get them wrong.
Also remove a few duplicate testca
Author: jilles
Date: Sun Nov 27 00:09:59 2011
New Revision: 228015
URL: http://svn.freebsd.org/changeset/base/228015
Log:
sh: Remove impossible evalskip check in 'for'.
Modified:
head/bin/sh/eval.c
Modified: head/bin/sh/eval.c
=
Author: jilles
Date: Sat Nov 26 23:28:31 2011
New Revision: 228013
URL: http://svn.freebsd.org/changeset/base/228013
Log:
sh: Reduce one level of evaltree() recursion when executing 'case'.
Free expanded case text before executing commands.
Remove impossible evalskip checks (expanding an arg
Author: jilles
Date: Sat Nov 26 22:28:25 2011
New Revision: 228007
URL: http://svn.freebsd.org/changeset/base/228007
Log:
sh: Add tests for some corner cases of 'case' exit status.
These already work properly.
Added:
head/tools/regression/bin/sh/builtins/case11.0 (contents, props chang
Author: jilles
Date: Fri Nov 25 23:45:29 2011
New Revision: 227984
URL: http://svn.freebsd.org/changeset/base/227984
Log:
test: Reduce code size of ops table.
Modified:
head/bin/test/test.c
Modified: head/bin/test/test.c
===
Author: jilles
Date: Tue Nov 22 23:46:56 2011
New Revision: 227852
URL: http://svn.freebsd.org/changeset/base/227852
Log:
fdopendir(): Do not close the passed file descriptor on failure.
Reviewed by: delphij
Modified:
head/lib/libc/gen/opendir.c
Modified: head/lib/libc/gen/opendir.c
==
olved references: the NEEDED entry
serves as an additional protection against version mismatches and symbol
versioning (if you ever add it) requires ld(1) to have access to the .so
containing the definition so it knows the version name to store in the
On Mon, Nov 21, 2011 at 06:29:06PM +1100, Bruce Evans wrote:
> On Wed, 9 Nov 2011, Jilles Tjoelker wrote:
> > On Wed, Nov 09, 2011 at 09:35:51AM +0100, Stefan Farfeleder wrote:
> >> Isn't the behaviour undefined too when you convert an out-of-range
> >> uintmax_t v
Author: jilles
Date: Sun Nov 20 21:48:50 2011
New Revision: 227773
URL: http://svn.freebsd.org/changeset/base/227773
Log:
sh: Allow unsetting OPTIND.
Note that only assigning the decimal value 1 resets getopts, as before.
Added:
head/tools/regression/bin/sh/parameters/optind1.0 (conten
uot;
[snip]
> > + update_run_exract || return 1
> Wouldn't
> oldIFS=$IFS
> # Blah blah
> IFS=$oldIFS
> be better?
That's too simple, it will change an unset IFS to a null IFS and the
difference between those is major. If IFS is unset, it behaves the
On Wed, Nov 09, 2011 at 01:49:16AM +, Alexey Dokuchaev wrote:
> On Tue, Nov 08, 2011 at 11:02:32PM +0000, Jilles Tjoelker wrote:
> > Author: jilles
> > Date: Tue Nov 8 23:02:32 2011
> > New Revision: 227366
> > URL: http://svn.freebsd.org/changeset/base/227366
>
On Wed, Nov 09, 2011 at 09:35:51AM +0100, Stefan Farfeleder wrote:
> On Tue, Nov 08, 2011 at 11:54:39PM +0000, Jilles Tjoelker wrote:
> > Author: jilles
> > Date: Tue Nov 8 23:54:39 2011
> > New Revision: 227369
> > URL: http://svn.freebsd.org/changeset/base/227369
Author: jilles
Date: Tue Nov 8 23:54:39 2011
New Revision: 227369
URL: http://svn.freebsd.org/changeset/base/227369
Log:
sh: Remove undefined behaviour due to overflow in +/-/* in arithmetic.
With i386 base gcc and i386 base clang, arith_yacc.o remains unchanged.
Modified:
head/bin/sh/a
Author: jilles
Date: Tue Nov 8 23:02:32 2011
New Revision: 227366
URL: http://svn.freebsd.org/changeset/base/227366
Log:
rc.d: Eliminate some unnecessary non-POSIX constructs:
* set - ...
* empty braces
* ^ in character class
Modified:
head/etc/rc.d/routing
head/etc/rc.d/syscon
Author: jilles
Date: Sat Nov 5 22:33:19 2011
New Revision: 227124
URL: http://svn.freebsd.org/changeset/base/227124
Log:
fifo_misc test: Fix swapped lseek arguments.
It worked regardless because SEEK_CUR happens to be 1.
Modified:
head/tools/regression/fifo/fifo_misc/fifo_misc.c
Modifi
Author: jilles
Date: Sat Nov 5 22:25:15 2011
New Revision: 227123
URL: http://svn.freebsd.org/changeset/base/227123
Log:
lint: Fix lseek() argument order.
Because SEEK_SET is 0, this seems to have no effect on the generated code.
PR: bin/160806
Submitted by: Henning Peters
Author: jilles
Date: Sat Nov 5 21:56:45 2011
New Revision: 227122
URL: http://svn.freebsd.org/changeset/base/227122
Log:
sh(1): Improve documentation of field splitting.
Modified:
head/bin/sh/sh.1
Modified: head/bin/sh/sh.1
===
Author: jilles
Date: Sat Nov 5 21:32:17 2011
New Revision: 227121
URL: http://svn.freebsd.org/changeset/base/227121
Log:
make(1): obj dirs are physical paths so write `pwd -P` rather than `pwd`.
Regular pwd may return a pathname containing symlinks, but make does not use
such pathnames.
Author: jilles
Date: Fri Oct 28 23:02:21 2011
New Revision: 226892
URL: http://svn.freebsd.org/changeset/base/226892
Log:
sh: Add test for exit status of for loop without items.
POSIX says the exit status of a for loop without any items shall be 0. There
are no exceptions if the exit stat
Author: jilles
Date: Tue Oct 18 22:51:40 2011
New Revision: 226523
URL: http://svn.freebsd.org/changeset/base/226523
Log:
Fix some memory errors in *at() regression tests.
Modified:
head/tools/regression/doat/doat.c
Modified: head/tools/regression/doat/doat.c
cmp(cs->cs_root, ch) == 0);
> + return ((cs->cs_invert ^ cset_rangecmp(cs->cs_root, ch)) == 0);
> }
> return (cs->cs_invert ^ false);
> }
These two changes are wrong. Contrary to what one might expect, the !=
and == operators bind more strongly tha
Author: jilles
Date: Tue Oct 4 22:28:06 2011
New Revision: 226028
URL: http://svn.freebsd.org/changeset/base/226028
Log:
portsnap: Detect error immediately if we can't fetch the snapshot metadata.
Also add some quotes around command substitution where useful and possible.
Reviewed by:
Author: jilles
Date: Tue Oct 4 22:23:00 2011
New Revision: 226027
URL: http://svn.freebsd.org/changeset/base/226027
Log:
Work around the autotools problem with the 10.0 version.
With this, I can build various ports on a 10.0-CURRENT system without
hacking or hiding the version number.
many of them, so it makes sense
not to have a prefix. The t option in ps also accepts these short names,
like 'ps lt0'. All other terminal names start with a letter.
In FreeBSD 7, the first 256 pseudo-terminals are named
/dev/tty[pqrsPQRS][0-9a-v]. A few more letters can be used to provid
Author: jilles
Date: Sun Aug 14 13:37:38 2011
New Revision: 224865
URL: http://svn.freebsd.org/changeset/base/224865
Log:
tail: Fix crash if -F'ed file's filesystem disappears.
If tail notices that a file it is following no longer exists (because stat()
fails), it will output any final li
think kern_getfsstat() should know about MNT_SOFTDEP and
MNT_SUJ, which would suggest giving up on preventing
MNT_SOFTDEP-with-MNT_SUJ in userland. However, what I care about is
mount(8) working while there are unrelated hung filesystems.
--
Jilles Tjoelker
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"
Author: jilles
Date: Sun Jul 17 14:52:55 2011
New Revision: 224132
URL: http://svn.freebsd.org/changeset/base/224132
Log:
rc.d/routing: Fix ugly output with additional routing options.
Print a separate "Additional routing options" line for each address family
which has additional options,
Author: jilles
Date: Sat Jul 16 16:14:14 2011
New Revision: 224104
URL: http://svn.freebsd.org/changeset/base/224104
Log:
sh: Add a test for a fairly obscure case with aliases.
This also passes on stable/8.
Added:
head/tools/regression/bin/sh/parser/alias6.0 (contents, props changed)
for (len = 0; isalnum(str[len]) || str[len] == '_'; len++);
> tmp = xmalloc(len + 1);
> - (void) strncpy(tmp, str, len);
> - tmp[len] = 0;
> + (void) strlcpy(tmp, str, len + 1);
> tokp->str = tmp;
> *mark = str + len;
> }
--
Jilles Tjoelker
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"
.0.0.0, ::0.0.0.0, fe80:: and ff02::,
which often gets in between things on the "Additional routing options:"
line, leading to ugly output.
However, it is inconsistent to change this for the gateway options only
and not for the other options and makes outp
Author: jilles
Date: Sun Jul 10 15:02:25 2011
New Revision: 223909
URL: http://svn.freebsd.org/changeset/base/223909
Log:
sh(1): Extend documentation about subshells.
Because sh executes commands in subshell environments without forking in
more and more cases (particularly from 8.0 on), i
n/test-posix_spawn.c
==
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/tools/regression/lib/libc/gen/test-posix_spawn.c Sun Jul 10
14:20:11 2011(r223907)
@@ -0,0 +1,90 @@
+/*-
+ * Copyright (c) 2011 Jilles Tjoelker
+ *
On Fri, Jun 17, 2011 at 01:03:13AM +0300, Kostik Belousov wrote:
> On Thu, Jun 16, 2011 at 11:27:38PM +0200, Jilles Tjoelker wrote:
> > I think disabling symver completely is too much: it implies a new
> > mutually incompatible set of binaries. What should be done instead is
Author: jilles
Date: Sun Jun 26 20:12:05 2011
New Revision: 223580
URL: http://svn.freebsd.org/changeset/base/223580
Log:
sh: Include instead of non-standard .
Modified:
head/bin/sh/arith_yacc.c
Modified: head/bin/sh/arith_yacc.c
=
Author: jilles
Date: Sat Jun 25 20:37:43 2011
New Revision: 223546
URL: http://svn.freebsd.org/changeset/base/223546
Log:
sh: Test that '!' is literal if quoted and first char of bracket expression
This also works on stable/8.
Added:
head/tools/regression/bin/sh/builtins/case10.0 (cont
Author: jilles
Date: Fri Jun 24 22:08:26 2011
New Revision: 223522
URL: http://svn.freebsd.org/changeset/base/223522
Log:
sh(1): Improve documentation of shell patterns:
* Shell patterns are also for ${var#pat} and the like.
* An '!' by itself will not trigger pathname generation so do no
Author: jilles
Date: Fri Jun 24 20:23:50 2011
New Revision: 223517
URL: http://svn.freebsd.org/changeset/base/223517
Log:
sh(1): Document the case command better.
Suggested by: netchild
Reviewed by: gjb
Modified:
head/bin/sh/sh.1
Modified: head/bin/sh/sh.1
===
added for compatibility with something?
If not, why do we need this non-standard extension if the shorter and
standard pwd -P already fulfills this function?
--
Jilles Tjoelker
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailma
Author: jilles
Date: Sun Jun 19 15:23:32 2011
New Revision: 223298
URL: http://svn.freebsd.org/changeset/base/223298
Log:
rc.subr: Make sure all functions are under if [ -z "${_rc_subr_loaded}" ].
Modified:
head/etc/rc.subr
Modified: head/etc/rc.subr
=
Author: jilles
Date: Sun Jun 19 11:42:48 2011
New Revision: 223292
URL: http://svn.freebsd.org/changeset/base/223292
Log:
rc.subr: Eliminate a fork from check_kern_features, like r223227.
MFC after:2 weeks
Modified:
head/etc/rc.subr
Modified: head/etc/rc.subr
===
Author: jilles
Date: Sun Jun 19 00:00:36 2011
New Revision: 223283
URL: http://svn.freebsd.org/changeset/base/223283
Log:
sh: Add test for r223282.
Added:
head/tools/regression/bin/sh/execution/bg4.0 (contents, props changed)
Added: head/tools/regression/bin/sh/execution/bg4.0
Author: jilles
Date: Sat Jun 18 23:58:59 2011
New Revision: 223282
URL: http://svn.freebsd.org/changeset/base/223282
Log:
sh: Remove special support for background simple commands.
It expands the arguments in the parent shell process, which is incorrect.
Modified:
head/bin/sh/eval.c
he
Author: jilles
Date: Sat Jun 18 23:43:28 2011
New Revision: 223281
URL: http://svn.freebsd.org/changeset/base/223281
Log:
sh: Add do-nothing -h option.
POSIX requires a -h option to sh and set, to locate and remember utilities
invoked by functions as they are defined. Given that this
lo
Author: jilles
Date: Sat Jun 18 23:01:26 2011
New Revision: 223279
URL: http://svn.freebsd.org/changeset/base/223279
Log:
libprocstat: For MAP_PRIVATE, do not consider the file open for writing.
If a file is mapped with with MAP_PRIVATE, no write permission is required
and changes do not
Author: jilles
Date: Sat Jun 18 22:16:55 2011
New Revision: 223276
URL: http://svn.freebsd.org/changeset/base/223276
Log:
libprocstat: Fix typo in error messages.
Modified:
head/lib/libprocstat/libprocstat.c
Modified: head/lib/libprocstat/libprocstat.c
===
Author: jilles
Date: Sat Jun 18 21:53:36 2011
New Revision: 223271
URL: http://svn.freebsd.org/changeset/base/223271
Log:
fuser: Fix skipping "SIG" on signal names (-s).
The code did !strncasecmp(str, "sig", 4) which is not useful.
Also change "sig" to "SIG" matching the uppercase si
Author: jilles
Date: Sat Jun 18 21:46:11 2011
New Revision: 223270
URL: http://svn.freebsd.org/changeset/base/223270
Log:
libprocstat: Remove spaces between function name and open parenthesis.
Modified:
head/lib/libprocstat/libprocstat.c
Modified: head/lib/libprocstat/libprocstat.c
=
Author: jilles
Date: Sat Jun 18 21:29:25 2011
New Revision: 223269
URL: http://svn.freebsd.org/changeset/base/223269
Log:
libprocstat: Correct format for size_t (should be %zu, not %zd).
Modified:
head/lib/libprocstat/libprocstat.c
Modified: head/lib/libprocstat/libprocstat.c
===
c() implementation
> #endif
> }
This commit uncovers breakage that had been present for a while. If I
compile this on stable/8 i386 for head i386, _ILP32 is not defined and
the warning is hit, breaking the build. Apparently, the code had been
broken for a while but I do not use dtrace so I w
Author: jilles
Date: Sat Jun 18 11:05:30 2011
New Revision: 223227
URL: http://svn.freebsd.org/changeset/base/223227
Log:
rc.subr: Eliminate about 100 forks from the boot sequence.
With the current sh, placing eval in a command substitution always results
in a fork(), even if it is the on
Author: jilles
Date: Fri Jun 17 21:16:27 2011
New Revision: 223206
URL: http://svn.freebsd.org/changeset/base/223206
Log:
posix_spawn(3): Document r222511 (trying to close already closed fd).
MFC after:1 week
Modified:
head/lib/libc/gen/posix_spawn.3
Modified: head/lib/libc/gen/posi
Author: jilles
Date: Fri Jun 17 13:03:49 2011
New Revision: 223186
URL: http://svn.freebsd.org/changeset/base/223186
Log:
sh: Add case statement fallthrough (with ';&' instead of ';;').
Replacing ;; with the new control operator ;& will cause the next list to be
executed as well without c
Author: jilles
Date: Fri Jun 17 10:21:24 2011
New Revision: 223183
URL: http://svn.freebsd.org/changeset/base/223183
Log:
sh: Skip variables with invalid names in "set", "export -p", "readonly -p".
This ensures the output of these commands is valid shell input.
Added:
head/tools/regressi
Author: jilles
Date: Thu Jun 16 21:50:28 2011
New Revision: 223163
URL: http://svn.freebsd.org/changeset/base/223163
Log:
sh: Reduce unnecessary forks with eval.
The eval special builtin now runs the code with EV_EXIT if it was run
with EV_EXIT itself.
In particular, this eliminates
compatibility
was not compiled in will abort if and when it attempts to use a function
that was changed in a later version.
--
Jilles Tjoelker
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubsc
Author: jilles
Date: Wed Jun 15 21:48:10 2011
New Revision: 223120
URL: http://svn.freebsd.org/changeset/base/223120
Log:
sh: Add support for named character classes in bracket expressions.
Example:
case x in [[:alpha:]]) echo yes ;; esac
Added:
head/tools/regression/bin/sh/builtins/
Author: jilles
Date: Mon Jun 13 21:03:27 2011
New Revision: 223060
URL: http://svn.freebsd.org/changeset/base/223060
Log:
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 mo
Author: jilles
Date: Sun Jun 12 23:06:04 2011
New Revision: 223024
URL: http://svn.freebsd.org/changeset/base/223024
Log:
sh: Save/restore changed variables in optimized command substitution.
In optimized command substitution, save and restore any variables changed by
expansions (${var=va
Author: jilles
Date: Sun Jun 12 12:55:46 2011
New Revision: 223011
URL: http://svn.freebsd.org/changeset/base/223011
Log:
sh: Add test for LC_COLLATE-based character ranges in case.
Added:
head/tools/regression/bin/sh/builtins/case7.0 (contents, props changed)
Added: head/tools/regression/
Author: jilles
Date: Sun Jun 12 12:54:52 2011
New Revision: 223010
URL: http://svn.freebsd.org/changeset/base/223010
Log:
sh: Fix locale-dependent ranges in bracket expressions.
When I added UTF-8 support in r221646, the LC_COLLATE-based ordering broke
because of sign extension of char.
Author: jilles
Date: Sun Jun 12 12:27:17 2011
New Revision: 223007
URL: http://svn.freebsd.org/changeset/base/223007
Log:
sh: Add test for case pattern matching with iso-8859-1 charset.
This also passes on stable/8.
Added:
head/tools/regression/bin/sh/builtins/case6.0 (contents, props
Author: jilles
Date: Sun Jun 12 10:13:48 2011
New Revision: 223005
URL: http://svn.freebsd.org/changeset/base/223005
Log:
sh: Read .profile from the home directory (or / if HOME is not set).
In most cases, login shells are started from the home directory, but not in
all, such as xterm -ls
Author: jilles
Date: Fri Jun 10 22:42:00 2011
New Revision: 222957
URL: http://svn.freebsd.org/changeset/base/222957
Log:
sh: Do parameter expansion on ENV before using it.
This is required by POSIX, and allows things like ENV=\$HOME/.shrc.
Note that tilde expansion is explicitly not p
Author: jilles
Date: Fri Jun 10 13:47:11 2011
New Revision: 222932
URL: http://svn.freebsd.org/changeset/base/222932
Log:
skel/.shrc: Improve commented CDPATH example for POSIX requirements.
POSIX says an empty entry in CDPATH shall not result in the new directory
being printed, while any
Author: jilles
Date: Thu Jun 9 23:12:23 2011
New Revision: 222907
URL: http://svn.freebsd.org/changeset/base/222907
Log:
sh: Do parameter expansion before printing PS4 (set -x).
The function name expandstr() and the general idea of doing this kind of
expansion by treating the text as a h
Author: jilles
Date: Wed Jun 8 21:58:19 2011
New Revision: 222882
URL: http://svn.freebsd.org/changeset/base/222882
Log:
sh: Add simple tests for set -x and PS4.
Added:
head/tools/regression/bin/sh/execution/set-x1.0 (contents, props changed)
head/tools/regression/bin/sh/execution/set-x2
Author: jilles
Date: Sun Jun 5 14:13:15 2011
New Revision: 222716
URL: http://svn.freebsd.org/changeset/base/222716
Log:
sh: Fix $? in heredocs on simple commands.
PR: bin/41410
Added:
head/tools/regression/bin/sh/expansion/heredoc2.0 (contents, props changed)
Modified:
he
Author: jilles
Date: Sun Jun 5 12:46:26 2011
New Revision: 222715
URL: http://svn.freebsd.org/changeset/base/222715
Log:
sh: Add already working testcases for $? in here-document.
If the here-document is attached to a compound command or subshell, $?
already works properly. This is both
Author: jilles
Date: Sat Jun 4 22:19:00 2011
New Revision: 222699
URL: http://svn.freebsd.org/changeset/base/222699
Log:
sh: Improve error message if the script cannot be opened.
Avoid ": cannot open : ...".
Modified:
head/bin/sh/options.c
Modified: head/bin/sh/options.c
==
Author: jilles
Date: Sat Jun 4 21:59:55 2011
New Revision: 222697
URL: http://svn.freebsd.org/changeset/base/222697
Log:
find: Exit if there is an unknown option.
Ignoring the parameter with the unknown options is unlikely to be what was
intended.
Example:
find -n .
Note th
Author: jilles
Date: Sat Jun 4 15:05:52 2011
New Revision: 222684
URL: http://svn.freebsd.org/changeset/base/222684
Log:
sh: Reduce more needless differences between error messages.
Modified:
head/bin/sh/alias.c
head/bin/sh/input.c
head/bin/sh/jobs.c
head/bin/sh/main.c
head/tools/reg
Author: jilles
Date: Sat Jun 4 11:28:42 2011
New Revision: 222676
URL: http://svn.freebsd.org/changeset/base/222676
Log:
sh: Honour -n while processing -c string.
Added:
head/tools/regression/bin/sh/execution/set-n4.0 (contents, props changed)
Modified:
head/bin/sh/eval.c
Modified: head
Author: jilles
Date: Fri Jun 3 21:17:42 2011
New Revision: 222661
URL: http://svn.freebsd.org/changeset/base/222661
Log:
sh: Add tests for -n flag. These already pass.
Added:
head/tools/regression/bin/sh/execution/set-n1.0 (contents, props changed)
head/tools/regression/bin/sh/execution/
Author: jilles
Date: Mon May 30 21:49:59 2011
New Revision: 222512
URL: http://svn.freebsd.org/changeset/base/222512
Log:
sh: Add tests for some somewhat obscure aspects of function definitions.
Added:
head/tools/regression/bin/sh/parser/func2.0 (contents, props changed)
head/tools/regres
Author: jilles
Date: Mon May 30 21:41:06 2011
New Revision: 222511
URL: http://svn.freebsd.org/changeset/base/222511
Log:
posix_spawn(): Do not fail when trying to close an fd that is not open.
As noted in Austin Group issue #370 (an interpretation has been issued),
failing posix_spawn()
Author: jilles
Date: Sun May 29 15:02:10 2011
New Revision: 222451
URL: http://svn.freebsd.org/changeset/base/222451
Log:
sh: Add test for 'set +o'.
Added:
head/tools/regression/bin/sh/builtins/set1.0 (contents, props changed)
Added: head/tools/regression/bin/sh/builtins/set1.0
===
Author: jilles
Date: Sat May 28 14:32:47 2011
New Revision: 222421
URL: http://svn.freebsd.org/changeset/base/222421
Log:
printf(1): Document that %c and precision for %b/%s use bytes, not chars.
This means these features do not work as expected with multibyte characters.
This perhaps
Author: jilles
Date: Sat May 28 11:37:47 2011
New Revision: 222418
URL: http://svn.freebsd.org/changeset/base/222418
Log:
printf: Allow multibyte characters for ' form, avoid negative codes.
Examples:
LC_ALL=en_US.UTF-8 printf '%d\n' $(printf \'\\303\\244)
LC_ALL=en_US.ISO8859-1 pri
Author: jilles
Date: Fri May 27 22:14:49 2011
New Revision: 222390
URL: http://svn.freebsd.org/changeset/base/222390
Log:
find: If a part of an expression is unknown, do not call it an option.
Although most of the primaries and operators start with "-", they are not
options.
Examples
Author: jilles
Date: Fri May 27 20:53:07 2011
New Revision: 222386
URL: http://svn.freebsd.org/changeset/base/222386
Log:
sh: Remove the "exp" builtin.
The "exp" builtin is undocumented, non-standard and not very useful.
If exp's return value is not used, something like
VAR=$(exp EXP
Author: jilles
Date: Fri May 27 20:01:46 2011
New Revision: 222381
URL: http://svn.freebsd.org/changeset/base/222381
Log:
sh: Correct criterion for using CDPATH in cd.
CDPATH should be ignored not only for pathnames starting with '/' but also
for pathnames whose first component is '.' or
801 - 900 of 1237 matches
Mail list logo