summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Add a very simple IPDIVERT test, which creates IP divert sockets andrwatson2011-06-042-0/+177
| | | | | | | | | | | | checks for collision/non-collision properties in binding them. This test would have identified a bug recently reported on current@ involding my disaggregation of the pcbinfo lock. It would be nice if this test also exercised packet diversion and injection, but that is for another day. MFC after: 3 days Sponsored by: Juniper Networks, Inc.
* sh: Reduce more needless differences between error messages.jilles2011-06-041-1/+1
|
* sh: Honour -n while processing -c string.jilles2011-06-041-0/+3
|
* sh: Add tests for -n flag. These already pass.jilles2011-06-033-0/+16
|
* Don't need (and can't use) -L to copy links here.imp2011-05-311-1/+1
|
* sh: Add tests for some somewhat obscure aspects of function definitions.jilles2011-05-302-0/+12
|
* Upgrade jail(2) to latest jail(2) API to make the regression test workbz2011-05-301-2/+9
| | | | | | | again. Eventually should switch to jail_set(2). Reported by: rwatson MFC after: 10 days
* Rework TIMEWAIT regression test so that kernel-allocated port numbers arerwatson2011-05-301-39/+84
| | | | | | | | used rather than a fixed userspace one, avoiding conflicts between the two test runs. MFC after: 3 days Sponsored by: Juniper Networks, Inc.
* Add missing include of stdio.h.rwatson2011-05-301-0/+1
| | | | | MFC after: 3 days Sponsored by: Juniper Networks, Inc.
* In the tcpdrop regression test, allow the kernel to allocate us a portrwatson2011-05-301-37/+44
| | | | | | | | | rather than using a fixed port number. This means that the regression test can be run many times in a row without waiting on TIMEWAIT to release a hard-coded port number. MFC after: 3 days Sponsored by: Juniper Networks, Inc.
* Add missing #include of err.h.rwatson2011-05-301-0/+1
| | | | | MFC after: 3 days Sponsored by: Juniper Networks, Inc.
* sh: Add test for 'set +o'.jilles2011-05-291-0/+32
|
* printf: Allow multibyte characters for '<char> form, avoid negative codes.jilles2011-05-283-1/+5
| | | | | | | | | | | | | Examples: LC_ALL=en_US.UTF-8 printf '%d\n' $(printf \'\\303\\244) LC_ALL=en_US.ISO8859-1 printf '%d\n' $(printf \'\\344) Both of these should print 228. Like some other shells, incomplete or invalid multibyte characters yield the value of the first byte without a warning. Note that there is no general way to go back from the character code to the character.
* sh: Correct criterion for using CDPATH in cd.jilles2011-05-272-0/+25
| | | | | | | CDPATH should be ignored not only for pathnames starting with '/' but also for pathnames whose first component is '.' or '..'. The man page already describes this behaviour.
* sh: Add simple CDPATH test.jilles2011-05-271-0/+23
|
* sh: Fix unquoted $@/$* if IFS=''.jilles2011-05-271-0/+39
| | | | | | If IFS is null, unquoted $@/$* should still expand to separate words. This differs from quoted $@ (which does not depend on IFS) in that pathname generation is performed and empty words are removed.
* Include an EEPROM dump program for the AR9287 EEPROM format.adrian2011-05-266-0/+508
|
* + Tighten up (and simplify) the pass_cmd_vars_1 "variable definition arrivedobrien2011-05-251-12/+9
| | | | | from the calling make" test. + Be more tolerant of newlines in the plus_flag "supports the '+' flag" test.
* [mdoc] Fixed .Dt call.ru2011-05-251-1/+1
|
* Build and install a BSD licensed grep.obrien2011-05-251-1/+1
| | | | | | | | If WITH_BSD_GREP is not set, it will be 'bsdgrep' and GNUgrep will be '[ef]grep'. Otherwise, BSD-grep will be the grep family, and GNUgrep will be 'gnugrep'. Discussed with: brooks
* Add the description properly...imp2011-05-221-1/+2
|
* Add documentation for WITHOUT_KERNEL_SYMBOLSimp2011-05-221-0/+4
|
* sh: Add test for r222173.jilles2011-05-221-0/+12
|
* Update URLs and fix regex to work with current version of the files.uqs2011-05-221-5/+5
|
* sh: Expand aliases after assignments and redirections.jilles2011-05-212-0/+10
|
* sh: Add test for positional parameters with more than one digit.jilles2011-05-211-0/+13
| | | | This also passes on stable/8.
* sh: Implement the cd -e flag proposed for the next POSIX issue.jilles2011-05-202-0/+59
| | | | | | | | | This reflects failure to determine the pathname of the new directory in the exit status (1). Normally, cd returns successfully if it did chdir() and the call was successful. In POSIX, -e only has meaning with -P; because our -L is not entirely compliant and may fall back to -P mode, -e has some effect with -L as well.
* sh: Allow terminating a heredoc with a terminator at EOF without a newline.jilles2011-05-201-0/+26
| | | | | | | | | | | | | | | | | | | | | | This is sometimes used with eval or old-style command substitution, and most shells other than ash derivatives allow it. It can also be used with scripts that violate POSIX's requirement on the application that they end in a newline (scripts must be text files except that line length is unlimited). Example: v=`cat <<EOF foo EOF` echo $v This commit does not add support for the similar construct with new-style command substitution, like v=$(cat <<EOF foo EOF) This continues to require a newline after the terminator.
* Implement WITH{,OUT}_{GCC,BINUTILS} to provide finer-grained controlimp2011-05-192-0/+13
| | | | | | | over building gcc and binutils. They default to true, unless MK_TOOLCHAIN is no. Reviewed by: ru@
* Added description for WITH_OFED.ru2011-05-171-0/+4
|
* sh: Add tests for lines that look like heredoc delimiters but are not.jilles2011-05-142-0/+107
|
* Restore BOOT2CFG, accidentally removed in r212938.imp2011-05-141-1/+1
| | | | PR: 157020
* If there's no package directory, don't try to install packages fromimp2011-05-131-0/+6
| | | | | | it. Instead, report that 0 packages are reported. PR: misc/140436
* Add ${} around variable dereference...imp2011-05-131-1/+1
| | | | Submitted by: garrett coopper
* Implement -f to inhibit copying s1 partition out for speed.imp2011-05-131-4/+12
| | | | | | | | (-z not taken from PR, it is no longer needed since we basically always do that now) PR: misc/151698 Submitted by: lev@
* Copy symbolic links as files rather than recreating the links.imp2011-05-131-3/+3
| | | | | | PR: misc/151697 Submitted by: lev@ MFC after: 2 weeks
* Reassurance for impatient.ru2011-05-101-0/+10
|
* Style.ru2011-05-101-10/+10
|
* - There now exist options that have different defaults depending onru2011-05-103-49/+139
| | | | | | | | | | | | | | the architecture, reflect this in documentation. For such options, both WITH_FOO and WITHOUT_FOO description files should be provided. Prodded by: des - Setting a build option may enforce other build options, try harder to detect this case. - Setting a build option may change other option's default value, try harder to detect this case.
* The Objective C support was removed in r220755.ru2011-05-101-2/+0
| | | | Submitted by: des
* This is a full 32 bit field for kite.adrian2011-05-091-1/+1
|
* sh: Add \u/\U support (in $'...') for UTF-8.jilles2011-05-082-0/+18
| | | | | | | | | | Because we have no iconv in base, support for other charsets is not possible. Note that \u/\U are processed using the locale that was active when the shell started. This is necessary to avoid behaviour that depends on the parse/execute split (for example when placing braces around an entire script). Therefore, UTF-8 encoding is implemented manually.
* sh: Add UTF-8 support to pattern matching.jilles2011-05-082-0/+132
| | | | | | | | | | ?, [...] patterns match codepoints instead of bytes. They do not match invalid sequences. [...] patterns must not contain invalid sequences otherwise they will not match anything. This is so that ${var#?} removes the first codepoint, not the first byte, without putting UTF-8 knowledge into the ${var#pattern} code. However, * continues to match any string and an invalid sequence matches an identical invalid sequence. (This differs from fnmatch(3).)
* sh: Add UTF-8 support to ${#var}.jilles2011-05-072-0/+28
| | | | | If the current locale uses UTF-8, ${#var} counts codepoints (more precisely, bytes b with (b & 0xc0) != 0x80).
* MK_GPIO changed its default; reflect.ru2011-05-062-2/+4
|
* Removed trailing whitespace.ru2011-05-062-2/+2
|
* Tidy up formatting.ru2011-05-061-2/+2
|
* sh: Add $'quoting' (C-style escape sequences).jilles2011-05-059-0/+100
| | | | | | | | | | | | | | | | | | | | | | | | A string between $' and ' may contain backslash escape sequences similar to the ones in a C string constant (except that a single-quote must be escaped and a double-quote need not be). Details are in the sh(1) man page. This construct is useful to include unprintable characters, tabs and newlines in strings; while this can be done with a command substitution containing a printf command, that needs ugly workarounds if the result is to end with a newline as command substitution removes all trailing newlines. The construct may also be useful in future to describe unprintable characters without needing to write those characters themselves in 'set -x', 'export -p' and the like. The implementation attempts to comply to the proposal for the next issue of the POSIX specification. Because this construct is not in POSIX.1-2008, using it in scripts intended to be portable is unwise. Matching the minimal locale support in the rest of sh, the \u and \U sequences are currently not useful. Exp-run done by: pav (with some other sh(1) changes)
* sh: Apply set -u to variables in arithmetic.jilles2011-05-041-0/+6
| | | | | | | Note that this only applies to variables that are actually used. Things like (0 && unsetvar) do not cause an error. Exp-run done by: pav (with some other sh(1) changes)
* sh: Detect an error for ${#var<GARBAGE>}.jilles2011-05-042-0/+3
| | | | | | | | | In particular, this makes things like ${#foo[0]} and ${#foo[@]} errors rather than silent equivalents of ${#foo}. PR: bin/151720 Submitted by: Mark Johnston Exp-run done by: pav (with some other sh(1) changes)
OpenPOWER on IntegriCloud