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

2011-05-07 Thread Jilles Tjoelker
Author: jilles Date: Sat May 7 14:32:16 2011 New Revision: 221602 URL: http://svn.freebsd.org/changeset/base/221602 Log: sh: Add UTF-8 support to ${#var}. If the current locale uses UTF-8, ${#var} counts codepoints (more precisely, bytes b with (b 0xc0) != 0x80). Added:

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

2011-05-08 Thread Jilles Tjoelker
Author: jilles Date: Sun May 8 11:32:20 2011 New Revision: 221646 URL: http://svn.freebsd.org/changeset/base/221646 Log: sh: Add UTF-8 support to pattern matching. ?, [...] patterns match codepoints instead of bytes. They do not match invalid sequences. [...] patterns must not contain

svn commit: r221660 - head/bin/sh

2011-05-08 Thread Jilles Tjoelker
Author: jilles Date: Sun May 8 14:03:44 2011 New Revision: 221660 URL: http://svn.freebsd.org/changeset/base/221660 Log: sh(1): Update BUGS section for UTF-8 support. Modified: head/bin/sh/sh.1 Modified: head/bin/sh/sh.1

svn commit: r221668 - head/bin/sh

2011-05-08 Thread Jilles Tjoelker
Author: jilles Date: Sun May 8 16:15:50 2011 New Revision: 221668 URL: http://svn.freebsd.org/changeset/base/221668 Log: sh: Optimize variable code by storing the length of the name. Obtained from:NetBSD Modified: head/bin/sh/var.c head/bin/sh/var.h Modified:

svn commit: r221669 - in head: bin/sh tools/regression/bin/sh/parser

2011-05-08 Thread Jilles Tjoelker
Author: jilles Date: Sun May 8 17:40:10 2011 New Revision: 221669 URL: http://svn.freebsd.org/changeset/base/221669 Log: sh: Add \u/\U support (in $'...') for UTF-8. Because we have no iconv in base, support for other charsets is not possible. Note that \u/\U are processed using

svn commit: r221884 - head/etc

2011-05-14 Thread Jilles Tjoelker
Author: jilles Date: Sat May 14 12:22:58 2011 New Revision: 221884 URL: http://svn.freebsd.org/changeset/base/221884 Log: network.subr: Use printf(1) builtin for hexprint function. Now that printf(1) is a shell builtin, there is no need to emulate it anymore. The external printf(1) is

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

2011-05-14 Thread Jilles Tjoelker
Author: jilles Date: Sat May 14 14:19:30 2011 New Revision: 221887 URL: http://svn.freebsd.org/changeset/base/221887 Log: sh: Add tests for lines that look like heredoc delimiters but are not. Added: head/tools/regression/bin/sh/parser/heredoc10.0 (contents, props changed)

svn commit: r221970 - head/bin/sh

2011-05-15 Thread Jilles Tjoelker
Author: jilles Date: Sun May 15 17:00:43 2011 New Revision: 221970 URL: http://svn.freebsd.org/changeset/base/221970 Log: sh: Avoid close(-1) when evaluating a multi-command pipeline. Valgrind complains about this. Modified: head/bin/sh/eval.c Modified: head/bin/sh/eval.c

svn commit: r221975 - head/bin/sh

2011-05-15 Thread Jilles Tjoelker
Author: jilles Date: Sun May 15 22:09:27 2011 New Revision: 221975 URL: http://svn.freebsd.org/changeset/base/221975 Log: sh: Minor optimization to output from ulimit/export/readonly. No functional change is intended. Modified: head/bin/sh/miscbltin.c head/bin/sh/var.c Modified:

svn commit: r222037 - head/lib/libc/sys

2011-05-17 Thread Jilles Tjoelker
Author: jilles Date: Tue May 17 21:03:34 2011 New Revision: 222037 URL: http://svn.freebsd.org/changeset/base/222037 Log: mq_setattr(2): Add missing const to man page. The declaration in the header file is correct. MFC after:1 week Modified: head/lib/libc/sys/mq_setattr.2

svn commit: r222125 - stable/8/sys/kern

2011-05-20 Thread Jilles Tjoelker
Author: jilles Date: Fri May 20 12:48:39 2011 New Revision: 222125 URL: http://svn.freebsd.org/changeset/base/222125 Log: MFC r220740: ktrace: Log the code for all signals (PSIG events). The code provides information on how the signal was generated. Formerly, the code was only logged

svn commit: r222126 - stable/8/usr.bin/kdump

2011-05-20 Thread Jilles Tjoelker
Author: jilles Date: Fri May 20 12:52:08 2011 New Revision: 222126 URL: http://svn.freebsd.org/changeset/base/222126 Log: MFC r220756: kdump: Show code for signals with default action. This information is available as of kernel r222125. Trace files from older kernels will always have 0.

svn commit: r222134 - in head: bin/sh tools/regression/bin/sh/parser

2011-05-20 Thread Jilles Tjoelker
Author: jilles Date: Fri May 20 16:03:36 2011 New Revision: 222134 URL: http://svn.freebsd.org/changeset/base/222134 Log: sh: Allow terminating a heredoc with a terminator at EOF without a newline. This is sometimes used with eval or old-style command substitution, and most shells other

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

2011-05-20 Thread Jilles Tjoelker
Author: jilles Date: Fri May 20 22:55:18 2011 New Revision: 222154 URL: http://svn.freebsd.org/changeset/base/222154 Log: sh: Implement the cd -e flag proposed for the next POSIX issue. This reflects failure to determine the pathname of the new directory in the exit status (1). Normally,

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

2011-05-21 Thread Jilles Tjoelker
Author: jilles Date: Sat May 21 14:52:26 2011 New Revision: 222158 URL: http://svn.freebsd.org/changeset/base/222158 Log: sh: Add test for positional parameters with more than one digit. This also passes on stable/8. Added: head/tools/regression/bin/sh/parameters/positional1.0

svn commit: r222165 - in head: bin/sh tools/regression/bin/sh/parser

2011-05-21 Thread Jilles Tjoelker
Author: jilles Date: Sat May 21 22:03:06 2011 New Revision: 222165 URL: http://svn.freebsd.org/changeset/base/222165 Log: sh: Expand aliases after assignments and redirections. Added: head/tools/regression/bin/sh/parser/alias4.0 (contents, props changed)

svn commit: r222173 - head/bin/sh

2011-05-22 Thread Jilles Tjoelker
Author: jilles Date: Sun May 22 12:12:28 2011 New Revision: 222173 URL: http://svn.freebsd.org/changeset/base/222173 Log: sh: Fix bss-based buffer overflow in . builtin. If the length of a directory in PATH together with the given filename exceeded FILENAME_MAX (which may happen even for

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

2011-05-22 Thread Jilles Tjoelker
Author: jilles Date: Sun May 22 12:15:14 2011 New Revision: 222174 URL: http://svn.freebsd.org/changeset/base/222174 Log: sh: Add test for r222173. Added: head/tools/regression/bin/sh/builtins/dot4.0 (contents, props changed) Added: head/tools/regression/bin/sh/builtins/dot4.0

svn commit: r222182 - head/bin/sh

2011-05-22 Thread Jilles Tjoelker
Author: jilles Date: Sun May 22 15:24:56 2011 New Revision: 222182 URL: http://svn.freebsd.org/changeset/base/222182 Log: sh: Remove obsolete token type TENDBQUOTE. This token type was related to Almquist's original version of backquotes that could not nest and fell into disuse fairly

svn commit: r222208 - stable/8/bin/sh

2011-05-22 Thread Jilles Tjoelker
Author: jilles Date: Sun May 22 22:28:07 2011 New Revision: 08 URL: http://svn.freebsd.org/changeset/base/08 Log: MFC r208489,r216208: sh: Reap any zombies before forking for a background command. This prevents accumulating huge amounts of zombies if a script executes many

svn commit: r222270 - stable/8/lib/libc/sys

2011-05-24 Thread Jilles Tjoelker
Author: jilles Date: Tue May 24 21:12:52 2011 New Revision: 70 URL: http://svn.freebsd.org/changeset/base/70 Log: MFC r222037: mq_setattr(2): Add missing const to man page. The declaration in the header file is correct. Modified: stable/8/lib/libc/sys/mq_setattr.2 Directory

svn commit: r222271 - stable/7/lib/libc/sys

2011-05-24 Thread Jilles Tjoelker
Author: jilles Date: Tue May 24 21:15:13 2011 New Revision: 71 URL: http://svn.freebsd.org/changeset/base/71 Log: MFC r222037: mq_setattr(2): Add missing const to man page. The declaration in the header file is correct. Modified: stable/7/lib/libc/sys/mq_setattr.2 Directory

svn commit: r222292 - head/bin/sh

2011-05-25 Thread Jilles Tjoelker
Author: jilles Date: Wed May 25 21:38:16 2011 New Revision: 92 URL: http://svn.freebsd.org/changeset/base/92 Log: sh: Show errno messages in cd. Modified: head/bin/sh/cd.c Modified: head/bin/sh/cd.c == ---

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

2011-05-27 Thread Jilles Tjoelker
Author: jilles Date: Fri May 27 15:56:13 2011 New Revision: 222361 URL: http://svn.freebsd.org/changeset/base/222361 Log: sh: Fix unquoted $@/$* if IFS=''. If IFS is null, unquoted $@/$* should still expand to separate words. This differs from quoted $@ (which does not depend on IFS) in

svn commit: r222362 - head/bin/sh

2011-05-27 Thread Jilles Tjoelker
Author: jilles Date: Fri May 27 16:00:37 2011 New Revision: 222362 URL: http://svn.freebsd.org/changeset/base/222362 Log: sh: Various updates to the TOUR document. Modified: head/bin/sh/TOUR Modified: head/bin/sh/TOUR

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

2011-05-27 Thread Jilles Tjoelker
Author: jilles Date: Fri May 27 19:36:07 2011 New Revision: 222379 URL: http://svn.freebsd.org/changeset/base/222379 Log: sh: Add simple CDPATH test. Added: head/tools/regression/bin/sh/builtins/cd5.0 (contents, props changed) Added: head/tools/regression/bin/sh/builtins/cd5.0

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

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

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: 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 'char form, avoid negative codes. Examples: LC_ALL=en_US.UTF-8 printf '%d\n' $(printf \'\\303\\244)

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: 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: r222452 - stable/8/bin/sh

2011-05-29 Thread Jilles Tjoelker
Author: jilles Date: Sun May 29 15:07:53 2011 New Revision: 222452 URL: http://svn.freebsd.org/changeset/base/222452 Log: MFC r222173: sh: Fix bss-based buffer overflow in . builtin. If the length of a directory in PATH together with the given filename exceeded FILENAME_MAX (which may

svn commit: r222453 - stable/8/tools/regression/bin/sh/builtins

2011-05-29 Thread Jilles Tjoelker
Author: jilles Date: Sun May 29 15:10:12 2011 New Revision: 222453 URL: http://svn.freebsd.org/changeset/base/222453 Log: MFC r222174: sh: Add test for r222173 (MFCed as r222452). Added: stable/8/tools/regression/bin/sh/builtins/dot4.0 - copied unchanged from r222174,

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: 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)

svn commit: r222657 - stable/8/usr.bin/find

2011-06-03 Thread Jilles Tjoelker
Author: jilles Date: Fri Jun 3 18:18:54 2011 New Revision: 222657 URL: http://svn.freebsd.org/changeset/base/222657 Log: MFC r222390: 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.

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:

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

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

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 nosuchfile: cannot open nosuchfile: Modified: head/bin/sh/options.c Modified:

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: 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:

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)

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

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

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

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

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: 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: 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:

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

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

svn commit: r223096 - in stable/8/tools/regression/bin/sh: builtins execution expansion parameters parser

2011-06-14 Thread Jilles Tjoelker
Author: jilles Date: Tue Jun 14 20:04:23 2011 New Revision: 223096 URL: http://svn.freebsd.org/changeset/base/223096 Log: MFC r221887,r222158,r222379,r222451,r222512,r222661,r222715,r222882: sh: New testcases that already work in stable/8. Added:

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:

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
it attempts to use a function that was changed in a later version. -- 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

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

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:

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

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:

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

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
broken for a while but I do not use dtrace so I would not have noticed. The tinderboxes have now also noticed the problem so it is not something weird about my system. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org

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

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: 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 signal

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: 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: 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

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: 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: 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

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

2011-06-21 Thread Jilles Tjoelker
? 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-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any

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

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

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

svn commit: r223565 - stable/8/lib/libc/gen

2011-06-26 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 26 10:50:11 2011 New Revision: 223565 URL: http://svn.freebsd.org/changeset/base/223565 Log: MFC r222511,r223206: 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),

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 limits.h instead of non-standard sys/limits.h. Modified: head/bin/sh/arith_yacc.c Modified: head/bin/sh/arith_yacc.c

svn commit: r223711 - stable/8/bin/sh

2011-07-01 Thread Jilles Tjoelker
Author: jilles Date: Fri Jul 1 12:30:34 2011 New Revision: 223711 URL: http://svn.freebsd.org/changeset/base/223711 Log: MFC r223522: sh(1): Improve documentation of shell patterns: * Shell patterns are also for ${var#pat} and the like. * An '!' by itself will not trigger pathname

svn commit: r223742 - stable/8/etc

2011-07-03 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 3 16:32:03 2011 New Revision: 223742 URL: http://svn.freebsd.org/changeset/base/223742 Log: MFC r223227: 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

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 allowing to compile out

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

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

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),

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

2011-07-15 Thread Jilles Tjoelker
options only and not for the other options and makes output uglier unnecessarily in the !IPv6 case. Perhaps it is best to use a separate line for each af, finishing it within the options_$af function. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing

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)

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: r224289 - stable/8/usr.bin/printf

2011-07-24 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 24 17:24:26 2011 New Revision: 224289 URL: http://svn.freebsd.org/changeset/base/224289 Log: MFC r212374,r221026: printf(1): Document need for -- before format strings starting with -. Also move the remark that hexadecimal escapes are not provided to the new

svn commit: r224291 - stable/8/usr.bin/printf

2011-07-24 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 24 17:52:35 2011 New Revision: 224291 URL: http://svn.freebsd.org/changeset/base/224291 Log: MFC r221013: printf(1): Mention effect of '#' modifier on other conversions. Modified: stable/8/usr.bin/printf/printf.1 Directory Properties: stable/8/usr.bin/printf/

svn commit: r224297 - in stable/8: lib/libc/gen lib/libc/sys usr.bin/lastcomm

2011-07-24 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 24 20:09:42 2011 New Revision: 224297 URL: http://svn.freebsd.org/changeset/base/224297 Log: MFC r207735: Update xrefs from 4.3BSD to modern signal functions in various man pages. sigvec(2) references have been updated to sigaction(2), sigsetmask(2) and

svn commit: r224409 - stable/8/share/skel

2011-07-25 Thread Jilles Tjoelker
Author: jilles Date: Mon Jul 25 21:58:39 2011 New Revision: 224409 URL: http://svn.freebsd.org/changeset/base/224409 Log: MFC r222932: skel/.shrc: Improve commented CDPATH example for POSIX requirements. POSIX says an empty entry in CDPATH shall not result in the new directory being

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

2011-07-25 Thread Jilles Tjoelker
is MNT_SOFTDEP turned off if MNT_SUJ is on. I don't 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

svn commit: r224854 - in stable/8: bin/sh tools/regression/bin/sh/expansion

2011-08-13 Thread Jilles Tjoelker
Author: jilles Date: Sat Aug 13 21:33:50 2011 New Revision: 224854 URL: http://svn.freebsd.org/changeset/base/224854 Log: MFC r222716: sh: Fix $? in heredocs on simple commands. The patch is slightly different because redirected compound commands are handled differently in stable/8 (no

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

svn commit: r225067 - stable/8/usr.bin/tail

2011-08-21 Thread Jilles Tjoelker
Author: jilles Date: Sun Aug 21 20:59:51 2011 New Revision: 225067 URL: http://svn.freebsd.org/changeset/base/225067 Log: MFC r224865: 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

svn commit: r225068 - stable/7/usr.bin/tail

2011-08-21 Thread Jilles Tjoelker
Author: jilles Date: Sun Aug 21 22:09:30 2011 New Revision: 225068 URL: http://svn.freebsd.org/changeset/base/225068 Log: MFC r224865: 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

svn commit: r225494 - in stable/8/tools/regression/bin/sh: builtins parser

2011-09-11 Thread Jilles Tjoelker
Author: jilles Date: Sun Sep 11 21:38:33 2011 New Revision: 225494 URL: http://svn.freebsd.org/changeset/base/225494 Log: MFC r223007,r223011,r223546,r224104: sh: New testcases that already work in stable/8. Added: stable/8/tools/regression/bin/sh/builtins/case10.0 - copied unchanged

svn commit: r217425 - head/bin/sh

2011-01-14 Thread Jilles Tjoelker
Author: jilles Date: Fri Jan 14 21:30:27 2011 New Revision: 217425 URL: http://svn.freebsd.org/changeset/base/217425 Log: sh: Make 'trap -l' look like 'kill -l'. Modified: head/bin/sh/trap.c Modified: head/bin/sh/trap.c

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

2011-01-15 Thread Jilles Tjoelker
Author: jilles Date: Sat Jan 15 21:09:00 2011 New Revision: 217461 URL: http://svn.freebsd.org/changeset/base/217461 Log: sh: Fix some things about -- in trap: * Make 'trap --' do the same as 'trap' instead of nothing. * Make '--' stop option processing (note that '-' action is not an

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

2011-01-16 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 16 13:56:41 2011 New Revision: 217472 URL: http://svn.freebsd.org/changeset/base/217472 Log: sh: If exit is used without args from a trap action, exit on the signal. This is useful so that it is easier to exit on a signal than to reset the trap to default and

svn commit: r217473 - head/bin/sh

2011-01-16 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 16 14:11:50 2011 New Revision: 217473 URL: http://svn.freebsd.org/changeset/base/217473 Log: sh(1): Document changes to 'exit' from traps. Modified: head/bin/sh/sh.1 Modified: head/bin/sh/sh.1

svn commit: r217484 - head/lib/libc/sys

2011-01-16 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 16 21:59:50 2011 New Revision: 217484 URL: http://svn.freebsd.org/changeset/base/217484 Log: mknod(2): The required include is sys/stat.h, not unistd.h. This is what SUSv4 requires, and also the only thing that works if strict standards compliance is

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