svn commit: r230117 - head/bin/sh

2012-01-14 Thread Jilles Tjoelker
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 =

svn commit: r230095 - in head: bin/sh tools/regression/bin/sh/builtins

2012-01-13 Thread Jilles Tjoelker
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

Re: svn commit: r229936 - head/lib/libutil

2012-01-10 Thread Jilles Tjoelker
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

svn commit: r229742 - head/tools/regression/bin/sh/builtins

2012-01-06 Thread Jilles Tjoelker
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 =

svn commit: r229220 - head/bin/sh

2012-01-01 Thread Jilles Tjoelker
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

svn commit: r229219 - head/bin/sh

2012-01-01 Thread Jilles Tjoelker
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 ==

svn commit: r229201 - head/bin/sh

2012-01-01 Thread Jilles Tjoelker
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 =

svn commit: r228972 - head/lib/libc/gen

2011-12-29 Thread Jilles Tjoelker
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 ===

svn commit: r228943 - in head: bin/sh tools/regression/bin/sh/builtins

2011-12-28 Thread Jilles Tjoelker
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

svn commit: r228942 - head/bin/sh

2011-12-28 Thread Jilles Tjoelker
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

svn commit: r228941 - head/bin/sh

2011-12-28 Thread Jilles Tjoelker
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

svn commit: r228937 - head/bin/sh

2011-12-28 Thread Jilles Tjoelker
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

svn commit: r228922 - head/lib/libc/gen

2011-12-27 Thread Jilles Tjoelker
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 ===

svn commit: r228921 - head/lib/libc/locale

2011-12-27 Thread Jilles Tjoelker
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 ==

svn commit: r228873 - head/tools/regression/bin/sh/parameters

2011-12-25 Thread Jilles Tjoelker
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

svn commit: r228669 - head/usr.bin/du

2011-12-17 Thread Jilles Tjoelker
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

svn commit: r228512 - head/tools/regression/pipe

2011-12-14 Thread Jilles Tjoelker
== --- /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

svn commit: r228510 - head/sys/kern

2011-12-14 Thread Jilles Tjoelker
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

svn commit: r228269 - head/lib/libc/locale

2011-12-04 Thread Jilles Tjoelker
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 =

svn commit: r228109 - head/tools/regression/bin/test

2011-11-28 Thread Jilles Tjoelker
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

svn commit: r228015 - head/bin/sh

2011-11-26 Thread Jilles Tjoelker
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 =

svn commit: r228013 - head/bin/sh

2011-11-26 Thread Jilles Tjoelker
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

svn commit: r228007 - head/tools/regression/bin/sh/builtins

2011-11-26 Thread Jilles Tjoelker
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

svn commit: r227984 - head/bin/test

2011-11-25 Thread Jilles Tjoelker
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 ===

svn commit: r227852 - head/lib/libc/gen

2011-11-22 Thread Jilles Tjoelker
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 ==

Re: svn commit: r227798 - in head: . lib/libpam lib/libpam/modules

2011-11-22 Thread Jilles Tjoelker
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

Re: svn commit: r227369 - head/bin/sh

2011-11-21 Thread Jilles Tjoelker
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

svn commit: r227773 - in head: bin/sh tools/regression/bin/sh/parameters

2011-11-20 Thread Jilles Tjoelker
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

Re: svn commit: r227483 - head/usr.sbin/portsnap/portsnap

2011-11-13 Thread Jilles Tjoelker
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

Re: svn commit: r227366 - in head/etc: . rc.d

2011-11-09 Thread Jilles Tjoelker
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 >

Re: svn commit: r227369 - head/bin/sh

2011-11-09 Thread Jilles Tjoelker
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

svn commit: r227369 - head/bin/sh

2011-11-08 Thread Jilles Tjoelker
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

svn commit: r227366 - in head/etc: . rc.d

2011-11-08 Thread Jilles Tjoelker
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

svn commit: r227124 - head/tools/regression/fifo/fifo_misc

2011-11-05 Thread Jilles Tjoelker
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

svn commit: r227123 - head/usr.bin/xlint/xlint

2011-11-05 Thread Jilles Tjoelker
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

svn commit: r227122 - head/bin/sh

2011-11-05 Thread Jilles Tjoelker
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 ===

svn commit: r227121 - head/usr.bin/make

2011-11-05 Thread Jilles Tjoelker
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.

svn commit: r226892 - head/tools/regression/bin/sh/builtins

2011-10-28 Thread Jilles Tjoelker
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

svn commit: r226523 - head/tools/regression/doat

2011-10-18 Thread Jilles Tjoelker
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

Re: svn commit: r226360 - head/usr.bin/tr

2011-10-14 Thread Jilles Tjoelker
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

svn commit: r226028 - head/usr.sbin/portsnap/portsnap

2011-10-04 Thread Jilles Tjoelker
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:

svn commit: r226027 - head/share/mk

2011-10-04 Thread Jilles Tjoelker
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.

Re: svn commit: r225868 - head/bin/ps

2011-10-01 Thread Jilles Tjoelker
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

svn commit: r224865 - head/usr.bin/tail

2011-08-14 Thread Jilles Tjoelker
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

Re: svn commit: r224294 - in head: sbin/mount sys/kern sys/sys sys/ufs/ffs sys/ufs/ufs

2011-07-25 Thread Jilles Tjoelker
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"

svn commit: r224132 - head/etc/rc.d

2011-07-17 Thread Jilles Tjoelker
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,

svn commit: r224104 - head/tools/regression/bin/sh/parser

2011-07-16 Thread Jilles Tjoelker
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)

Re: svn commit: r223922 - head/usr.bin/rpcgen

2011-07-15 Thread Jilles Tjoelker
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"

Re: svn commit: r224048 - head/etc/rc.d

2011-07-15 Thread Jilles Tjoelker
.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

svn commit: r223909 - head/bin/sh

2011-07-10 Thread Jilles Tjoelker
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

svn commit: r223907 - in head: lib/libc/gen tools/regression/lib/libc/gen

2011-07-10 Thread Jilles Tjoelker
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 + *

Re: cvs commit: src Makefile.inc1 src/lib/libc Makefile src/lib/libc_r Makefile src/lib/libpthread Makefile pthread.map src/lib/libpthread/thread thr_private.h src/lib/librt Makefile src/lib/libthr Ma

2011-07-09 Thread 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

svn commit: r223580 - head/bin/sh

2011-06-26 Thread Jilles Tjoelker
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 =

svn commit: r223546 - head/tools/regression/bin/sh/builtins

2011-06-25 Thread Jilles Tjoelker
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

svn commit: r223522 - head/bin/sh

2011-06-24 Thread Jilles Tjoelker
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

svn commit: r223517 - head/bin/sh

2011-06-24 Thread Jilles Tjoelker
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 ===

Re: svn commit: r223372 - head/bin/realpath

2011-06-21 Thread Jilles Tjoelker
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

svn commit: r223298 - head/etc

2011-06-19 Thread Jilles Tjoelker
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 =

svn commit: r223292 - head/etc

2011-06-19 Thread Jilles Tjoelker
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 ===

svn commit: r223283 - head/tools/regression/bin/sh/execution

2011-06-18 Thread Jilles Tjoelker
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

svn commit: r223282 - head/bin/sh

2011-06-18 Thread Jilles Tjoelker
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

svn commit: r223281 - head/bin/sh

2011-06-18 Thread Jilles Tjoelker
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

svn commit: r223279 - head/lib/libprocstat

2011-06-18 Thread Jilles Tjoelker
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

svn commit: r223276 - head/lib/libprocstat

2011-06-18 Thread Jilles Tjoelker
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 ===

svn commit: r223271 - head/usr.bin/fstat

2011-06-18 Thread Jilles Tjoelker
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

svn commit: r223270 - head/lib/libprocstat

2011-06-18 Thread Jilles Tjoelker
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 =

svn commit: r223269 - head/lib/libprocstat

2011-06-18 Thread Jilles Tjoelker
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 ===

Re: svn commit: r223262 - in head: cddl/contrib/opensolaris/lib/libdtrace/common contrib/binutils/bfd contrib/binutils/gas contrib/binutils/gas/config contrib/binutils/ld contrib/binutils/opcodes cont

2011-06-18 Thread Jilles Tjoelker
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

svn commit: r223227 - head/etc

2011-06-18 Thread Jilles Tjoelker
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

svn commit: r223206 - head/lib/libc/gen

2011-06-17 Thread Jilles Tjoelker
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

svn commit: r223186 - in head: bin/sh tools/regression/bin/sh/builtins

2011-06-17 Thread Jilles Tjoelker
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

svn commit: r223183 - in head: bin/sh tools/regression/bin/sh/builtins

2011-06-17 Thread Jilles Tjoelker
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

svn commit: r223163 - in head: bin/sh tools/regression/bin/sh/expansion

2011-06-16 Thread Jilles Tjoelker
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

Re: cvs commit: src Makefile.inc1 src/lib/libc Makefile src/lib/libc_r Makefile src/lib/libpthread Makefile pthread.map src/lib/libpthread/thread thr_private.h src/lib/librt Makefile src/lib/libthr Ma

2011-06-16 Thread Jilles Tjoelker
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

svn commit: r223120 - in head: bin/sh tools/regression/bin/sh/builtins

2011-06-15 Thread Jilles Tjoelker
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/

svn commit: r223060 - in head/bin/sh: . bltin

2011-06-13 Thread Jilles Tjoelker
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

svn commit: r223024 - head/bin/sh

2011-06-12 Thread Jilles Tjoelker
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

svn commit: r223011 - head/tools/regression/bin/sh/builtins

2011-06-12 Thread Jilles Tjoelker
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/

svn commit: r223010 - head/bin/sh

2011-06-12 Thread Jilles Tjoelker
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.

svn commit: r223007 - head/tools/regression/bin/sh/builtins

2011-06-12 Thread Jilles Tjoelker
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

svn commit: r223005 - head/bin/sh

2011-06-12 Thread Jilles Tjoelker
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

svn commit: r222957 - in head: bin/sh tools/regression/bin/sh/parameters

2011-06-10 Thread Jilles Tjoelker
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

svn commit: r222932 - head/share/skel

2011-06-10 Thread Jilles Tjoelker
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

svn commit: r222907 - in head: bin/sh tools/regression/bin/sh/execution

2011-06-09 Thread Jilles Tjoelker
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

svn commit: r222882 - head/tools/regression/bin/sh/execution

2011-06-08 Thread Jilles Tjoelker
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

svn commit: r222716 - in head: bin/sh tools/regression/bin/sh/expansion

2011-06-05 Thread Jilles Tjoelker
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

svn commit: r222715 - head/tools/regression/bin/sh/expansion

2011-06-05 Thread Jilles Tjoelker
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

svn commit: r222699 - head/bin/sh

2011-06-04 Thread Jilles Tjoelker
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 ==

svn commit: r222697 - head/usr.bin/find

2011-06-04 Thread Jilles Tjoelker
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

svn commit: r222684 - in head: bin/sh tools/regression/bin/sh/builtins

2011-06-04 Thread Jilles Tjoelker
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

svn commit: r222676 - in head: bin/sh tools/regression/bin/sh/execution

2011-06-04 Thread Jilles Tjoelker
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

svn commit: r222661 - head/tools/regression/bin/sh/execution

2011-06-03 Thread Jilles Tjoelker
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/

svn commit: r222512 - head/tools/regression/bin/sh/parser

2011-05-30 Thread Jilles Tjoelker
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

svn commit: r222511 - head/lib/libc/gen

2011-05-30 Thread Jilles Tjoelker
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()

svn commit: r222451 - head/tools/regression/bin/sh/builtins

2011-05-29 Thread Jilles Tjoelker
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 ===

svn commit: r222421 - head/usr.bin/printf

2011-05-28 Thread Jilles Tjoelker
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

svn commit: r222418 - in head: tools/regression/usr.bin/printf usr.bin/printf

2011-05-28 Thread Jilles Tjoelker
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

svn commit: r222390 - head/usr.bin/find

2011-05-27 Thread Jilles Tjoelker
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

svn commit: r222386 - head/bin/sh

2011-05-27 Thread Jilles Tjoelker
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

svn commit: r222381 - in head: bin/sh tools/regression/bin/sh/builtins

2011-05-27 Thread Jilles Tjoelker
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

<    4   5   6   7   8   9   10   11   12   13   >