svn commit: r207816 - head/share/man/man3

2010-05-09 Thread Jilles Tjoelker
Author: jilles Date: Sun May 9 14:21:34 2010 New Revision: 207816 URL: http://svn.freebsd.org/changeset/base/207816 Log: Document clock and pshared condvar attributes. Note: clock accepts CLOCK_VIRTUAL and CLOCK_PROF too, but this seems broken as it simply waits for the difference of

svn commit: r207820 - head/tools/regression/bin/sh/errors

2010-05-09 Thread Jilles Tjoelker
Author: jilles Date: Sun May 9 16:04:32 2010 New Revision: 207820 URL: http://svn.freebsd.org/changeset/base/207820 Log: sh: Fix bug in assignment error test. The test failed if the command returned nonzero exit status, and it really should return that. Modified:

svn commit: r207821 - in head/tools/regression: bin/sh/builtins lib/libc/gen

2010-05-09 Thread Jilles Tjoelker
Author: jilles Date: Sun May 9 16:15:40 2010 New Revision: 207821 URL: http://svn.freebsd.org/changeset/base/207821 Log: Generate some tests for sh's case command from the fnmatch tests. I'm committing the generated files because I don't like a build dependency for the sh(1) tests, and

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

2010-05-09 Thread Jilles Tjoelker
Author: jilles Date: Sun May 9 17:10:50 2010 New Revision: 207824 URL: http://svn.freebsd.org/changeset/base/207824 Log: sh: Add some parser tests. case1.0 tests POSIX requirements and one more for keywords in case statements. The others test very special cases of command substitution.

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

2010-05-09 Thread Jilles Tjoelker
Author: jilles Date: Sun May 9 17:15:26 2010 New Revision: 207825 URL: http://svn.freebsd.org/changeset/base/207825 Log: Fix error in comment. Modified: head/tools/regression/bin/sh/builtins/var-assign2.0 Modified: head/tools/regression/bin/sh/builtins/var-assign2.0

svn commit: r207826 - stable/8/usr.bin/pathchk

2010-05-09 Thread Jilles Tjoelker
Author: jilles Date: Sun May 9 19:30:52 2010 New Revision: 207826 URL: http://svn.freebsd.org/changeset/base/207826 Log: MFC r207483: pathchk: Add the new POSIX -P option. This option checks for empty pathnames and components starting with '-'. Our -p option also checks for the latter,

svn commit: r207827 - stable/8/usr.bin/pathchk

2010-05-09 Thread Jilles Tjoelker
Author: jilles Date: Sun May 9 19:32:37 2010 New Revision: 207827 URL: http://svn.freebsd.org/changeset/base/207827 Log: MFC r207485: pathchk(1): Fix the example so it allows arbitrary pathnames. Spaces and various other characters in pathnames are not passed through literally by xargs

svn commit: r207831 - head/bin/sh

2010-05-09 Thread Jilles Tjoelker
Author: jilles Date: Sun May 9 22:03:18 2010 New Revision: 207831 URL: http://svn.freebsd.org/changeset/base/207831 Log: sh(1): Fix reserved word vs keyword inconsistency. Use keyword everywhere, like the output of the 'type' builtin, and only mention reserved word once to say it is the

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

2010-05-11 Thread Jilles Tjoelker
Author: jilles Date: Tue May 11 22:28:55 2010 New Revision: 207935 URL: http://svn.freebsd.org/changeset/base/207935 Log: sh: Add some simple testcases for pathname expansion. Added: head/tools/regression/bin/sh/expansion/pathname1.0 (contents, props changed) Added:

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

2010-05-11 Thread Jilles Tjoelker
Author: jilles Date: Tue May 11 23:19:28 2010 New Revision: 207944 URL: http://svn.freebsd.org/changeset/base/207944 Log: sh: Fix pathname expansion with quoted slashes like *\/. These are git commits 36f0fa8fcbc8c7b2b194addd29100fb40e73e4e9 and d6d06ff5c2ea0fa44becc5ef4340e5f2f15073e4

svn commit: r208029 - stable/7/contrib/telnet/telnet

2010-05-13 Thread Jilles Tjoelker
Author: jilles Date: Thu May 13 15:28:34 2010 New Revision: 208029 URL: http://svn.freebsd.org/changeset/base/208029 Log: MFC r207449: telnet: Fix infinite loop if local output generates SIGPIPE. Instead of catching SIGPIPE and jumping out of the signal handler with longjmp, ignore it

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

2010-05-13 Thread Jilles Tjoelker
Author: jilles Date: Thu May 13 15:44:49 2010 New Revision: 208032 URL: http://svn.freebsd.org/changeset/base/208032 Log: MFC r207734: sigaltstack(2): document some modernizations: * un-document 'struct sigaltstack' tag for stack_t as this is BSD-specific; this doesn't seem useful enough

svn commit: r208037 - in stable/8/tools/regression/bin/sh: expansion parameters parser

2010-05-13 Thread Jilles Tjoelker
Author: jilles Date: Thu May 13 17:22:00 2010 New Revision: 208037 URL: http://svn.freebsd.org/changeset/base/208037 Log: MFC r206143,r206148,r206149,r206167,r206491,r206817,r207127,r207824 Various testcases that work correctly with stable/8 sh. Added:

svn commit: r208112 - in stable/8/tools/regression: bin/sh/builtins lib/libc/gen

2010-05-15 Thread Jilles Tjoelker
Author: jilles Date: Sat May 15 12:42:07 2010 New Revision: 208112 URL: http://svn.freebsd.org/changeset/base/208112 Log: MFC r207821: Generate some tests for sh's case command from the fnmatch tests. I'm committing the generated files because I don't like a build dependency for the

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

2010-05-15 Thread Jilles Tjoelker
Author: jilles Date: Sat May 15 12:51:22 2010 New Revision: 208113 URL: http://svn.freebsd.org/changeset/base/208113 Log: MFC r207935: sh: Add some simple testcases for pathname expansion. Added: stable/8/tools/regression/bin/sh/expansion/pathname1.0 - copied unchanged from r207935,

svn commit: r208116 - head/etc

2010-05-15 Thread Jilles Tjoelker
Author: jilles Date: Sat May 15 17:49:56 2010 New Revision: 208116 URL: http://svn.freebsd.org/changeset/base/208116 Log: Change the commented msgs examples in profile/csh.login from -f to -q. Starting something that wants input on login seems strange and can be dangerous. In some

svn commit: r208138 - stable/8/share/man/man3

2010-05-16 Thread Jilles Tjoelker
Author: jilles Date: Sun May 16 11:03:46 2010 New Revision: 208138 URL: http://svn.freebsd.org/changeset/base/208138 Log: MFC r207816: Document clock and pshared condvar attributes. Note: clock accepts CLOCK_VIRTUAL and CLOCK_PROF too, but this seems broken as it simply waits for the

svn commit: r208139 - stable/8/share/man/man1

2010-05-16 Thread Jilles Tjoelker
Author: jilles Date: Sun May 16 11:06:32 2010 New Revision: 208139 URL: http://svn.freebsd.org/changeset/base/208139 Log: MFC r207817: builtin(1): sh has no @ builtin command. Modified: stable/8/share/man/man1/builtin.1 Directory Properties: stable/8/share/man/man1/ (props changed)

svn commit: r208140 - stable/7/share/man/man3

2010-05-16 Thread Jilles Tjoelker
Author: jilles Date: Sun May 16 11:14:11 2010 New Revision: 208140 URL: http://svn.freebsd.org/changeset/base/208140 Log: MFC r207816: Document clock and pshared condvar attributes. Note: clock accepts CLOCK_VIRTUAL and CLOCK_PROF too, but this seems broken as it simply waits for the

svn commit: r208141 - stable/7/share/man/man1

2010-05-16 Thread Jilles Tjoelker
Author: jilles Date: Sun May 16 11:17:21 2010 New Revision: 208141 URL: http://svn.freebsd.org/changeset/base/208141 Log: MFC r207817: builtin(1): sh has no @ builtin command. Modified: stable/7/share/man/man1/builtin.1 Directory Properties: stable/7/share/man/man1/ (props changed)

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

2010-05-16 Thread Jilles Tjoelker
Author: jilles Date: Sun May 16 22:52:51 2010 New Revision: 208174 URL: http://svn.freebsd.org/changeset/base/208174 Log: MFC r207944: sh: Fix pathname expansion with quoted slashes like *\/. These are git commits 36f0fa8fcbc8c7b2b194addd29100fb40e73e4e9 and

svn commit: r208313 - stable/8/etc

2010-05-19 Thread Jilles Tjoelker
Author: jilles Date: Wed May 19 20:53:21 2010 New Revision: 208313 URL: http://svn.freebsd.org/changeset/base/208313 Log: MFC r208116: Change the commented msgs examples in profile/csh.login from -f to -q. Starting something that wants input on login seems strange and can be dangerous.

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

2010-05-23 Thread Jilles Tjoelker
Author: jilles Date: Sun May 23 22:10:20 2010 New Revision: 208476 URL: http://svn.freebsd.org/changeset/base/208476 Log: sh: Add some simplistic tests for the wait builtin. Added: head/tools/regression/bin/sh/builtins/wait1.0 (contents, props changed)

svn commit: r208489 - head/bin/sh

2010-05-24 Thread Jilles Tjoelker
Author: jilles Date: Mon May 24 10:35:57 2010 New Revision: 208489 URL: http://svn.freebsd.org/changeset/base/208489 Log: sh: Reap any zombies before forking for a background command. This prevents accumulating huge amounts of zombies if a script executes many background commands but no

svn commit: r208501 - head/bin/sh

2010-05-24 Thread Jilles Tjoelker
Author: jilles Date: Mon May 24 13:28:12 2010 New Revision: 208501 URL: http://svn.freebsd.org/changeset/base/208501 Log: sh(1): Improve wording of 'Special Parameters' section. Modified: head/bin/sh/sh.1 Modified: head/bin/sh/sh.1

svn commit: r208505 - head/bin/sh

2010-05-24 Thread Jilles Tjoelker
Author: jilles Date: Mon May 24 15:12:12 2010 New Revision: 208505 URL: http://svn.freebsd.org/changeset/base/208505 Log: sh(1): Rework documentation of shell variables. * Move the environment variables that do not need exporting to be effective or that are set by the shell without

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

2010-05-28 Thread Jilles Tjoelker
Author: jilles Date: Fri May 28 22:08:34 2010 New Revision: 208629 URL: http://svn.freebsd.org/changeset/base/208629 Log: sh: Add some simple tests for ., exec and return from . script. Added: head/tools/regression/bin/sh/builtins/dot1.0 (contents, props changed)

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

2010-05-28 Thread Jilles Tjoelker
Author: jilles Date: Fri May 28 22:40:24 2010 New Revision: 208630 URL: http://svn.freebsd.org/changeset/base/208630 Log: sh: Recognize -- in . and exec. Although -- historically has not been required to be recognized for certain special builtins that do not take options in POSIX, some

svn commit: r208647 - in head: sbin/mount share/man/man5

2010-05-29 Thread Jilles Tjoelker
Author: jilles Date: Sat May 29 20:24:01 2010 New Revision: 208647 URL: http://svn.freebsd.org/changeset/base/208647 Log: Clarify devfs manpages slightly. mount(8): add xref to devfs(5) devfs(5): change example to something more likely to be useful (it is not necessary to mount a devfs

svn commit: r208654 - head/share/man/man5

2010-05-30 Thread Jilles Tjoelker
Author: jilles Date: Sun May 30 13:32:39 2010 New Revision: 208654 URL: http://svn.freebsd.org/changeset/base/208654 Log: devfs(5): Also mention when device nodes on ufs stopped working (6.0), as requested by some people. MFC after:2 weeks Modified: head/share/man/man5/devfs.5

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

2010-05-30 Thread Jilles Tjoelker
Author: jilles Date: Sun May 30 14:11:27 2010 New Revision: 208655 URL: http://svn.freebsd.org/changeset/base/208655 Log: sh: Change interaction of command substitution and here documents. If a command substitution contains a newline token, this no longer starts here documents of outer

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

2010-05-30 Thread Jilles Tjoelker
Author: jilles Date: Sun May 30 14:20:32 2010 New Revision: 208656 URL: http://svn.freebsd.org/changeset/base/208656 Log: sh: Fix a crash if a heredoc was not properly ended and parsing continued. Example (in interactive mode): cat EOF ) The next command typed caused sh to segfault,

svn commit: r208755 - head/bin/sh

2010-06-02 Thread Jilles Tjoelker
Author: jilles Date: Wed Jun 2 19:16:58 2010 New Revision: 208755 URL: http://svn.freebsd.org/changeset/base/208755 Log: sh: Pass TERM changes to libedit. I have changed the patch slightly to ignore TERM changes in subshells. PR: bin/146916 Submitted by: Guy Yur

Re: svn commit: r208868 - in head/usr.bin: bc dc

2010-06-06 Thread Jilles Tjoelker
that it looks like if the signal handler hadn't been there. Shells may rely on this to distinguish SIGINTs that caused the command to return to its main loop only and SIGINTs that aborted the entire command: in the latter case any enclosing structure should be aborted too. -- Jilles Tjoelker

Re: svn commit: r208868 - in head/usr.bin: bc dc

2010-06-06 Thread Jilles Tjoelker
potentially blocking system calls on EINTR. If you are wasting two system calls per slow system call anyway, it would likely be better if they were unmask/mask signals rather than toggling SA_RESTART. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing

svn commit: r208881 - head/bin/sh

2010-06-06 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 6 22:27:32 2010 New Revision: 208881 URL: http://svn.freebsd.org/changeset/base/208881 Log: sh: Pass through SIGINT from a child if interactive and job control is enabled. This already worked if without job control. In either case, this depends on it

svn commit: r209136 - in head: include lib/libedit

2010-06-13 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 13 17:04:42 2010 New Revision: 209136 URL: http://svn.freebsd.org/changeset/base/209136 Log: libedit: Add basic filename completion code from NetBSD. This will be used to provide filename completion in sh(1). Changes from the NetBSD code: * wide

svn commit: r209217 - head/lib/libedit

2010-06-15 Thread Jilles Tjoelker
Author: jilles Date: Tue Jun 15 21:00:53 2010 New Revision: 209217 URL: http://svn.freebsd.org/changeset/base/209217 Log: libedit: Fix a bug that could make completion listings incomplete. The element matches[0] is the common prefix and is not counted in len, so subtracting 1 is not

svn commit: r209219 - in head: include lib/libedit

2010-06-15 Thread Jilles Tjoelker
Author: jilles Date: Tue Jun 15 21:34:57 2010 New Revision: 209219 URL: http://svn.freebsd.org/changeset/base/209219 Log: libedit: Allow simple quoting in filename completion. The completer recognizes characters escaped with backslashes as being literal parts of a word, and adds

svn commit: r209221 - head/bin/sh

2010-06-15 Thread Jilles Tjoelker
Author: jilles Date: Tue Jun 15 21:58:40 2010 New Revision: 209221 URL: http://svn.freebsd.org/changeset/base/209221 Log: sh: Add filename completion. This uses the new libedit completion function with quoting support. Unlike NetBSD, there is no 'set +o tabcomplete' option to disable

svn commit: r209224 - head/lib/libedit

2010-06-15 Thread Jilles Tjoelker
Author: jilles Date: Tue Jun 15 22:23:21 2010 New Revision: 209224 URL: http://svn.freebsd.org/changeset/base/209224 Log: libedit: Reduce surprising behaviour with filename completion some more: * Quote '*', '?' and '['. While it may be more useful to expand them to matching pathnames,

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

2010-06-15 Thread Jilles Tjoelker
On Tue, Jun 15, 2010 at 03:10:11PM -0700, Colin Percival wrote: Jilles Tjoelker wrote: Unlike NetBSD, there is no 'set +o tabcomplete' option to disable completion. I do not see any reason for such a special treatment, as completion is rather useful and it is possible to do bind

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

2010-06-17 Thread Jilles Tjoelker
. More demanding users will want to use a more powerful interactive shell, and I think most operating systems based on FreeBSD should provide some (this does not mean they should be in the base system). -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing

svn commit: r209337 - head/bin/sh

2010-06-19 Thread Jilles Tjoelker
Author: jilles Date: Sat Jun 19 10:33:04 2010 New Revision: 209337 URL: http://svn.freebsd.org/changeset/base/209337 Log: sh: Fix compilation with -DNO_HISTORY. The LINENO code uses snprintf() and relied on myhistedit.h to pull in the necessary stdio.h. Compiling with -DNO_HISTORY

svn commit: r209484 - in stable/8: sbin/mount share/man/man5

2010-06-23 Thread Jilles Tjoelker
Author: jilles Date: Wed Jun 23 20:59:00 2010 New Revision: 209484 URL: http://svn.freebsd.org/changeset/base/209484 Log: MFC r208647,r208654: Clarify devfs manpages slightly. mount(8): add xref to devfs(5) devfs(5): change example to something more likely to be useful (it is not

svn commit: r209537 - in stable/7: sbin/mount share/man/man5

2010-06-26 Thread Jilles Tjoelker
Author: jilles Date: Sat Jun 26 14:42:07 2010 New Revision: 209537 URL: http://svn.freebsd.org/changeset/base/209537 Log: MFC r208647,r208654: Clarify devfs manpages slightly. mount(8): add xref to devfs(5) devfs(5): change example to something more likely to be useful (it is not

Re: svn commit: r209595 - head/sys/kern

2010-06-29 Thread Jilles Tjoelker
cause signals to be generated? SIGTTIN and SIGTTOU from read/write/ioctl are sent to the entire process group and are therefore not sent to a specific thread. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman

svn commit: r209600 - head/bin/sh

2010-06-29 Thread Jilles Tjoelker
Author: jilles Date: Tue Jun 29 22:37:45 2010 New Revision: 209600 URL: http://svn.freebsd.org/changeset/base/209600 Log: sh: Forget about terminated background processes sooner. Unless $! has been referenced for a particular job or $! still contains that job's pid, forget about it after

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

2010-07-02 Thread Jilles Tjoelker
Author: jilles Date: Fri Jul 2 21:31:24 2010 New Revision: 209652 URL: http://svn.freebsd.org/changeset/base/209652 Log: sh: Remove comment that the comma operator is missing in arithmetic expansion. The comma operator is not listed in POSIX.1-2008 XCU 1.1.2.1 Arithmetic Precision and

svn commit: r209653 - head/bin/sh

2010-07-02 Thread Jilles Tjoelker
Author: jilles Date: Fri Jul 2 22:17:13 2010 New Revision: 209653 URL: http://svn.freebsd.org/changeset/base/209653 Log: sh: Use $PWD instead of getcwd() for the \w and \W prompt expansions. This ensures that the logical working directory (which may include symlinks) is shown and is

svn commit: r209675 - in stable/7: bin/sh tools/regression/bin/sh/expansion

2010-07-03 Thread Jilles Tjoelker
Author: jilles Date: Sat Jul 3 21:06:48 2010 New Revision: 209675 URL: http://svn.freebsd.org/changeset/base/209675 Log: MFC r207944: sh: Fix pathname expansion with quoted slashes like *\/. These are git commits 36f0fa8fcbc8c7b2b194addd29100fb40e73e4e9 and

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

2010-07-03 Thread Jilles Tjoelker
Author: jilles Date: Sat Jul 3 21:31:05 2010 New Revision: 209676 URL: http://svn.freebsd.org/changeset/base/209676 Log: MFC r209337: sh: Fix compilation with -DNO_HISTORY. The LINENO code uses snprintf() and relied on myhistedit.h to pull in the necessary stdio.h. Compiling with

svn commit: r210087 - head/bin/sh

2010-07-14 Thread Jilles Tjoelker
Author: jilles Date: Wed Jul 14 22:31:45 2010 New Revision: 210087 URL: http://svn.freebsd.org/changeset/base/210087 Log: sh: There cannot be a TNOT in simplecmd(), remove checks. simplecmd() only handles simple commands and function definitions, neither of which involves the ! keyword.

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

2010-07-18 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 18 12:45:31 2010 New Revision: 210221 URL: http://svn.freebsd.org/changeset/base/210221 Log: sh: Allow a background command consisting solely of redirections. Example: /dev/null MFC after:2 weeks Added:

Re: svn commit: r210254 - in head/etc: defaults periodic/security

2010-07-20 Thread Jilles Tjoelker
in the echo commands should be quoted to avoid word splitting and pathname generation. + fi + ;; + esac + done + ;; + *) + rc=0 + ;; +esac + +exit $rc -- Jilles Tjoelker ___ svn

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

2010-07-25 Thread Jilles Tjoelker
Author: jilles Date: Sun Jul 25 22:25:52 2010 New Revision: 210488 URL: http://svn.freebsd.org/changeset/base/210488 Log: sh: Fix crash due to uninitialized here-document. If an ; or token was followed by an EOF token, pending here-documents were left uninitialized. Execution would

Re: svn commit: r210578 - head/usr.bin/grep

2010-07-29 Thread Jilles Tjoelker
)); strlcpy(dir, p-fts_path, (d - p-fts_path + 1)); Why do the buffer sizes differ here? Also, this can be a memcpy plus a '\0' write instead of a strlcpy. -- Jilles Tjoelker ___ svn-src-all@freebsd.org

svn commit: r210613 - head/bin/kill

2010-07-29 Thread Jilles Tjoelker
Author: jilles Date: Thu Jul 29 16:40:45 2010 New Revision: 210613 URL: http://svn.freebsd.org/changeset/base/210613 Log: kill: Stop processing if a syntactically invalid pid is encountered. So a command like kill _HUP 1 now fails without sending SIGTERM to init. The behaviour

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

2010-07-29 Thread Jilles Tjoelker
Author: jilles Date: Thu Jul 29 16:55:27 2010 New Revision: 210616 URL: http://svn.freebsd.org/changeset/base/210616 Log: MFC r208881: sh: Pass through SIGINT if interactive and job control is enabled. This already worked if without job control. In either case, this depends on it

Re: svn commit: r210616 - stable/8/bin/sh

2010-07-30 Thread Jilles Tjoelker
currently on stable/8 is incorrect... -- 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: r210734 - head/etc/rc.d

2010-08-01 Thread Jilles Tjoelker
Author: jilles Date: Sun Aug 1 15:41:00 2010 New Revision: 210734 URL: http://svn.freebsd.org/changeset/base/210734 Log: Allow starting /etc/rc.d/ipmon if ipnat is enabled but ipfilter is not (in /etc/rc.conf). This fixes an apparent confusion between test(1) and sh(1) syntax for

svn commit: r210736 - head/bin/sh

2010-08-01 Thread Jilles Tjoelker
Author: jilles Date: Sun Aug 1 16:37:51 2010 New Revision: 210736 URL: http://svn.freebsd.org/changeset/base/210736 Log: sh: Do not enter consecutive duplicates into the history. This simply sets a flag in libedit. It has a shortcoming in that it does not apply to multi-line commands.

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

2010-08-01 Thread Jilles Tjoelker
Author: jilles Date: Sun Aug 1 22:39:07 2010 New Revision: 210738 URL: http://svn.freebsd.org/changeset/base/210738 Log: sh: Add a test for a corner case in eval that already works correctly. Added: head/tools/regression/bin/sh/builtins/eval4.0 (contents, props changed) Added:

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

2010-01-10 Thread Jilles Tjoelker
Author: jilles Date: Sun Jan 10 16:58:12 2010 New Revision: 202017 URL: http://svn.freebsd.org/changeset/base/202017 Log: MFC r210428: sh: Add a regression test that tries out all arithmetic ops. The gaps in the numbering sequence cannot really be avoided, as HEAD changes are not

Re: svn commit: r201999 - head/lib/libc/stdio

2010-01-10 Thread Jilles Tjoelker
additional code on it seems inappropriate. Even then, fread()/fwrite() will not generate such large read(2)/write(2) requests as they always go through the buffer which is filled using smaller requests. Also, EOVERFLOW will give a more understandable error message for users. -- Jilles Tjoelker

svn commit: r202324 - head

2010-01-14 Thread Jilles Tjoelker
Author: jilles Date: Thu Jan 14 23:27:23 2010 New Revision: 202324 URL: http://svn.freebsd.org/changeset/base/202324 Log: In 'make delete-old', use 'exec' to redirect an fd persistently. That is, write 'exec 30' instead of '30'. Due to an sh(1) bug fixed in r199953, the latter also

Re: svn commit: r202892 - head/usr.bin

2010-01-24 Thread Jilles Tjoelker
arithmetic, so the dependency seems fairly fundamental. In the light of this, the size of the binary compared to the GNU one seems a bit disappointing to me. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

svn commit: r203133 - stable/8

2010-01-28 Thread Jilles Tjoelker
Author: jilles Date: Thu Jan 28 22:15:29 2010 New Revision: 203133 URL: http://svn.freebsd.org/changeset/base/203133 Log: MFC r202324: In 'make delete-old', use 'exec' to redirect an fd persistently That is, write 'exec 30' instead of '30'. Due to an sh(1) bug fixed in head in r199953,

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

2010-02-06 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 6 22:57:24 2010 New Revision: 203576 URL: http://svn.freebsd.org/changeset/base/203576 Log: sh: Do not stat() $MAIL/$MAILPATH in non-interactive shells. These may be NFS mounted, and we should not touch them unless we are going to do something useful with

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

2010-02-08 Thread Jilles Tjoelker
Author: jilles Date: Mon Feb 8 18:57:18 2010 New Revision: 203677 URL: http://svn.freebsd.org/changeset/base/203677 Log: sh: Make sure the mail2.0 test can actually fail if $MAIL is not touched. Modified: head/tools/regression/bin/sh/parameters/mail2.0 Modified:

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

2010-02-17 Thread Jilles Tjoelker
Author: jilles Date: Wed Feb 17 22:22:20 2010 New Revision: 204016 URL: http://svn.freebsd.org/changeset/base/204016 Log: sh: arith: Test an octal constant as well. Modified: head/tools/regression/bin/sh/expansion/arith2.0 Modified: head/tools/regression/bin/sh/expansion/arith2.0

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

2010-02-17 Thread Jilles Tjoelker
Author: jilles Date: Wed Feb 17 22:25:22 2010 New Revision: 204017 URL: http://svn.freebsd.org/changeset/base/204017 Log: sh: arith: Add a test for a bug in the dash arith code, which I plan to import at some point. Our current code handles it fine and it should stay that way. Added:

svn commit: r192607 - head/share/misc

2009-05-22 Thread Jilles Tjoelker
jake [label=Jake burkholder\nj...@freebsd.org\n2000/05/16] jamie [label=Jamie gritton\nja...@freebsd.org\n2009/01/28] jayanth [label=Jayanth vijayaraghavan\njaya...@freebsd.org\n2000/05/08] +jilles [label=Jilles tjoelker\njil...@freebsd.org\n2009/05/22] jinmei [label=JINMEI tatuya\njin

svn commit: r192687 - head/bin/chflags

2009-05-24 Thread Jilles Tjoelker
Author: jilles Date: Sun May 24 15:27:25 2009 New Revision: 192687 URL: http://svn.freebsd.org/changeset/base/192687 Log: Fix chflags -h in various cases: do not use link target's flags as original. Patch slightly changed to align more with chmod.c. PR: bin/131999

svn commit: r193086 - head/bin/cp

2009-05-30 Thread Jilles Tjoelker
Author: jilles Date: Sat May 30 10:36:14 2009 New Revision: 193086 URL: http://svn.freebsd.org/changeset/base/193086 Log: Preserve file flags on symlinks in cp -Rp. This reported ENOSYS before. PR: bin/111226 (part of) Submitted by: Martin Kammerhofer Approved by: ed

svn commit: r193087 - in head: bin/rm usr.bin/find

2009-05-30 Thread Jilles Tjoelker
Author: jilles Date: Sat May 30 10:42:19 2009 New Revision: 193087 URL: http://svn.freebsd.org/changeset/base/193087 Log: rm, find -delete: fix removing symlinks with uchg/uappnd set. Formerly, this tried to clear the flags on the symlink's target instead of the symlink itself. As

svn commit: r193185 - head/bin/sh

2009-05-31 Thread Jilles Tjoelker
Author: jilles Date: Sun May 31 19:37:06 2009 New Revision: 193185 URL: http://svn.freebsd.org/changeset/base/193185 Log: sh: Make read's timeout (-t) apply to the entire line, not only the first character. This avoids using non-standard behaviour of the old (upto FreeBSD 7) TTY layer:

svn commit: r193273 - head/usr.sbin/pkg_install/info

2009-06-01 Thread Jilles Tjoelker
Author: jilles Date: Mon Jun 1 21:26:52 2009 New Revision: 193273 URL: http://svn.freebsd.org/changeset/base/193273 Log: Fix segfault when giving invalid long option to pkg_info. PR: bin/133473 Submitted by: Rafal Grodzinski Approved by: ed (mentor) MFC after:1 week

Re: svn commit: r193475 - head/sbin/kldload

2009-06-05 Thread Jilles Tjoelker
and give a type larger than size_t, and %z is wrong. To use %z, the expression should be written as (size_t)(pathlen + 1). The promotion is not a problem because it would happen anyway, as it is an unprototyped parameter. printf and the like know this. -- Jilles Tjoelker

svn commit: r193776 - in stable/7/usr.sbin/pkg_install: . info

2009-06-08 Thread Jilles Tjoelker
Author: jilles Date: Mon Jun 8 22:05:47 2009 New Revision: 193776 URL: http://svn.freebsd.org/changeset/base/193776 Log: MFC r193273: Fix segfault when giving invalid long option to pkg_info. PR: bin/133473 Submitted by: Rafal Grodzinski Approved by: ed (mentor) Modified:

Re: svn commit: r194040 - stable/7/lib/libc/gen

2009-06-12 Thread Jilles Tjoelker
SHM objects even without this change. The change will likely help people that link statically to libc (boo!) or do weird things with the 7.x libc.so.7 file. -- Jilles Tjoelker ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman

svn commit: r194127 - head/bin/sh

2009-06-13 Thread Jilles Tjoelker
Author: jilles Date: Sat Jun 13 21:10:41 2009 New Revision: 194127 URL: http://svn.freebsd.org/changeset/base/194127 Log: Don't skip forking for an external command if any traps are active. Example: sh -c '(trap echo trapped EXIT; sleep 3)' now correctly prints trapped. With

svn commit: r194128 - head/bin/sh

2009-06-13 Thread Jilles Tjoelker
Author: jilles Date: Sat Jun 13 21:17:45 2009 New Revision: 194128 URL: http://svn.freebsd.org/changeset/base/194128 Log: Avoid leaving unnecessary waiting shells in many forms of sh -c COMMAND. This change only affects strings passed to -c, when the -s option is not used. The

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

2009-06-14 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 14 16:21:51 2009 New Revision: 194196 URL: http://svn.freebsd.org/changeset/base/194196 Log: Add tests for r194127 and r194128. Approved by: ed (mentor) Added: head/tools/regression/bin/sh/builtins/trap1.0 (contents, props changed)

svn commit: r194199 - stable/7/bin/chflags

2009-06-14 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 14 17:03:59 2009 New Revision: 194199 URL: http://svn.freebsd.org/changeset/base/194199 Log: MFC r192687: fix chflags -h PR: bin/131999 Submitted by: bde Approved by: ed (mentor) Modified: stable/7/bin/chflags/ (props changed)

svn commit: r194200 - stable/7/bin/ps

2009-06-14 Thread Jilles Tjoelker
Author: jilles Date: Sun Jun 14 17:05:54 2009 New Revision: 194200 URL: http://svn.freebsd.org/changeset/base/194200 Log: MFC r192688: fix nonsense in ps etime field for swapped out processes PR: bin/123069 Submitted by: Vladimir Kozbin Approved by: ed (mentor) Modified:

svn commit: r194406 - head/bin/sh

2009-06-17 Thread Jilles Tjoelker
Author: jilles Date: Wed Jun 17 21:58:32 2009 New Revision: 194406 URL: http://svn.freebsd.org/changeset/base/194406 Log: Properly flush input after an error in backquotes in interactive mode. For parsing an old-style backquote substitution (`...`), a string file is used to store the

svn commit: r194516 - head/bin/sh

2009-06-19 Thread Jilles Tjoelker
Author: jilles Date: Fri Jun 19 22:09:55 2009 New Revision: 194516 URL: http://svn.freebsd.org/changeset/base/194516 Log: Fix some issues with quoted output and shorten it in some cases. Output quoted suitable for re-input to the shell occurs in various cases such as 'set', 'trap'.

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

2009-06-19 Thread Jilles Tjoelker
Author: jilles Date: Fri Jun 19 22:15:59 2009 New Revision: 194517 URL: http://svn.freebsd.org/changeset/base/194517 Log: Add tests for r194406 and r194516. Approved by: ed (mentor) Added: head/tools/regression/bin/sh/builtins/trap2.0 (contents, props changed)

svn commit: r204410 - head/sys/kern

2010-02-27 Thread Jilles Tjoelker
Author: jilles Date: Sat Feb 27 12:15:59 2010 New Revision: 204410 URL: http://svn.freebsd.org/changeset/base/204410 Log: Include terminated threads in ps's process cpu time field. MFC after:2 weeks Modified: head/sys/kern/kern_proc.c Modified: head/sys/kern/kern_proc.c

Re: svn commit: r204410 - head/sys/kern

2010-02-27 Thread Jilles Tjoelker
On Sat, Feb 27, 2010 at 11:54:33AM -0800, Julian Elischer wrote: Jilles Tjoelker wrote: Log: Include terminated threads in ps's process cpu time field. this patch seems to do a lot less than the comment suggests. I guess the commit message could have been more verbose. When a kinfo_proc

Re: svn commit: r204413 - head/sys/kern

2010-02-27 Thread Jilles Tjoelker
, ki_sigmask could be the logical AND of all threads' td_sigmask when gathering information for the process, instead of the td_sigmask of the most recently created thread; fill_kinfo_aggregate() could handle this. -- Jilles Tjoelker ___ svn-src-all@freebsd.org

Re: svn commit: r204413 - head/sys/kern

2010-03-03 Thread Jilles Tjoelker
On Sun, Feb 28, 2010 at 01:15:08PM +0200, Kostik Belousov wrote: On Sat, Feb 27, 2010 at 11:08:54PM +0100, Jilles Tjoelker wrote: On Sat, Feb 27, 2010 at 03:32:49PM +, Konstantin Belousov wrote: Author: kib Date: Sat Feb 27 15:32:49 2010 New Revision: 204413 URL: http

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

2010-03-06 Thread Jilles Tjoelker
Author: jilles Date: Sat Mar 6 16:57:53 2010 New Revision: 204800 URL: http://svn.freebsd.org/changeset/base/204800 Log: sh: Improve the command builtin: * avoid unnecessary fork * allow executing builtins via command * executing a special builtin via command removes its special

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

2010-03-06 Thread Jilles Tjoelker
Author: jilles Date: Sat Mar 6 17:09:22 2010 New Revision: 204801 URL: http://svn.freebsd.org/changeset/base/204801 Log: sh: Make sure to popredir() even if a special builtin caused an error. Added: head/tools/regression/bin/sh/builtins/command9.0 (contents, props changed) Modified:

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

2010-03-06 Thread Jilles Tjoelker
Author: jilles Date: Sat Mar 6 17:31:09 2010 New Revision: 204802 URL: http://svn.freebsd.org/changeset/base/204802 Log: sh: Make sure to popredir() even if a function caused an error. Added: head/tools/regression/bin/sh/builtins/command10.0 (contents, props changed) Modified:

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

2010-03-07 Thread Jilles Tjoelker
Author: jilles Date: Sun Mar 7 15:08:42 2010 New Revision: 204836 URL: http://svn.freebsd.org/changeset/base/204836 Log: sh: Add various testcases for here documents. They are mainly about expansions in here documents but because all the testcases are in $() command substitution, we

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

2010-03-07 Thread Jilles Tjoelker
Author: jilles Date: Sun Mar 7 18:43:29 2010 New Revision: 204842 URL: http://svn.freebsd.org/changeset/base/204842 Log: sh: Add some testcases for ${v=w}, ${v-w}, ${v+w}. These expansions, which were already in the Bourne shell, work correctly for the most part. The testcases are only

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

2010-03-12 Thread Jilles Tjoelker
Author: jilles Date: Fri Mar 12 23:23:46 2010 New Revision: 205105 URL: http://svn.freebsd.org/changeset/base/205105 Log: sh: Add tests for and $ inside `. Added: head/tools/regression/bin/sh/expansion/cmdsubst2.0 (contents, props changed) Added:

svn commit: r205130 - head/bin/sh

2010-03-13 Thread Jilles Tjoelker
Author: jilles Date: Sat Mar 13 20:43:11 2010 New Revision: 205130 URL: http://svn.freebsd.org/changeset/base/205130 Log: sh: Fix longjmp clobber warnings in parser.c. Make parsebackq a function instead of an emulated nested function. This puts the setjmp usage in a smaller function

<    1   2   3   4   5   6   7   8   9   10   >