summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Replace -b with -C and -B (as proposed by Alexander).edwin2010-03-211-34/+37
| | | | | Add -3, -A and -B to the usage. Update regression test for the new parameters.
* Add missing headers. While there, arrange headers alphabetically.kib2010-03-165-17/+37
| | | | MFC after: 3 days
* Add missing headers.kib2010-03-161-0/+3
| | | | MFC after: 3 days
* sh: Do not abort on a redirection error on a compound command.jilles2010-03-142-0/+26
| | | | | | | | | | | | | | Redirection errors on subshells already did not abort the shell because the redirection is executed in the subshell. Other shells seem to agree that these redirection errors should not abort the shell. Also ensure that the redirections will be cleaned up properly in cases like command eval '{ shift x; } 2>/dev/null' Example: { echo bad; } </var/empty/x; echo good
* sh: Add test for redirection error on subshell (should not abort).jilles2010-03-141-0/+5
|
* Remove dot at the end of errx() message.kib2010-03-141-1/+1
| | | | | Noted by: bde MFC after: 3 days
* Adjust style, fix typo, do not print errno because it is meaningless there.kib2010-03-141-1/+2
| | | | | | This test fails for now. MFC after: 3 days
* Make it compile on LP64 arches.kib2010-03-141-4/+8
| | | | MFC after: 3 days
* Create regression tests for ncal:edwin2010-03-1493-1/+1332
| | | | | | | | | | | - A couple of tests to check if the layout of the generated calenders is correct. - A couple of tests to see if impossible combinations for -3, -A, -m, -y etc properly abort. - A couple of test to confirm that the order of -A, -B, -3 etc give the right number of months.
* sh: Do not abort on a redirection error if there is no command word.jilles2010-03-131-0/+7
| | | | | | | | | | | Although simple commands without a command word (only assignments and/or redirections) are much like special builtins, POSIX and most shells seem to agree that redirection errors should not abort the shell in this case. Of course, the assignments persist and assignment errors are fatal. To get the old behaviour portably, use the ':' special builtin. To get the new behaviour portably, given that there are no assignments, use the 'true' regular builtin.
* sh: Add test for assignment errors (e.g. trying to change a readonly var).jilles2010-03-131-0/+30
| | | | | | | We currently ignore readonly status for assignments before regular builtins and external programs (these assignments are not persistent anyway), so just check that the readonly variable really is not changed. The test depends on the command builtin changes for 'command :'.
* sh: Add tests for " and $ inside `.jilles2010-03-121-0/+43
|
* sh: Add some testcases for ${v=w}, ${v-w}, ${v+w}.jilles2010-03-072-0/+118
| | | | | | These expansions, which were already in the Bourne shell, work correctly for the most part. The testcases are only about the parts that already work correctly.
* sh: Add various testcases for here documents.jilles2010-03-071-0/+85
| | | | | | They are mainly about expansions in here documents but because all the testcases are in $() command substitution, we also test that $() command substitution is recursively parsed (or very close to it).
* sh: Make sure to popredir() even if a function caused an error.jilles2010-03-061-0/+14
|
* sh: Make sure to popredir() even if a special builtin caused an error.jilles2010-03-061-0/+14
|
* sh: Improve the command builtin:jilles2010-03-063-0/+154
| | | | | | | | * avoid unnecessary fork * allow executing builtins via command * executing a special builtin via command removes its special properties Obtained from: NetBSD (parts)
* - Use errx(3) instead of err(3) when checking if snprintf(3) succeeded.jh2010-03-058-1/+40
| | | | | | | | | | snprintf(3) doesn't set errno in the tested cases. - If the same argument reference (for example %1) was specified more than once, the command didn't necessarily fit to the final command buffer. Fix this using a dynamic sbuf buffer. Add a few regression tests for the case. PR: bin/95079 No objections: freebsd-hackers
* The NetBSD Foundation has granted permission to remove clause 3 and 4 fromjoel2010-03-033-21/+0
| | | | | | their software. Obtained from: NetBSD
* The NetBSD Foundation has granted permission to remove clause 3 and 4 fromjoel2010-03-0224-168/+0
| | | | | | their software. Obtained from: NetBSD
* The NetBSD Foundation has granted permission to remove clause 3 and 4 fromjoel2010-03-021-7/+0
| | | | | | their software. Obtained from: NetBSD
* Always assign WARNS using ?=uqs2010-03-0212-15/+13
| | | | | | | - fix some nearby style bugs - include Makefile.inc where it makes sense and reduces duplication Approved by: ed (co-mentor)
* Add files to remove when MK_PPP=no.antoine2010-02-281-0/+8
|
* Add files to remove when MK_PORTSNAP=no.antoine2010-02-281-0/+9
|
* Add files to remove when MK_PKGTOOLS=no.antoine2010-02-281-0/+16
|
* Add files to remove when MK_PF=no.antoine2010-02-281-3/+28
|
* Add files to remove when MK_NTP=no.antoine2010-02-281-0/+87
|
* Update files to remove when MK_RCMDS=no.antoine2010-02-281-0/+8
|
* Add files to remove when MK_RCS=no.antoine2010-02-281-3/+24
|
* Add files to remove when MK_ROUTED=no.antoine2010-02-281-0/+7
|
* Add files to remove when MK_TELNET=no.antoine2010-02-281-0/+7
|
* Add files to remove when MK_NDIS=no.antoine2010-02-281-0/+8
|
* Update files to remove when MK_NCP=no.antoine2010-02-281-2/+2
|
* Update files to remove when MK_LPR=no.antoine2010-02-281-0/+4
|
* Add files to remove when MK_WIRELESS=no.antoine2010-02-281-0/+29
|
* Do not remove fmt.1 when MK_MAIL=no.antoine2010-02-261-1/+0
| | | | X-MFC-With: r203584
* Fixed missing or broken library dependencies.ru2010-02-2526-29/+37
|
* Moved mcgrab(1) into a separate directory -- our .mk infrastructureru2010-02-255-40/+55
| | | | | | | doesn't currently have support for building multiple programs in a single makefile. While here, fixed manpages and makefiles (missing dependencies).
* Update the sendfile regression test so that it outputs results in thebrucec2010-02-242-169/+242
| | | | | | | | TAP format. Add a checksum to verify that the data hasn't been corrupted between being read from disk and being received. Approved by: rrs (mentor)
* Add a regression test for the kthread(9) interface.attilio2010-02-202-0/+214
| | | | | Submitted by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com>
* sh: arith: Add a test for a bug in the dash arith code,jilles2010-02-171-0/+14
| | | | | which I plan to import at some point. Our current code handles it fine and it should stay that way.
* sh: arith: Test an octal constant as well.jilles2010-02-171-0/+1
|
* Add missing newline in last line of file.uqs2010-02-161-1/+1
| | | | | Uncovered via: fromcvs vs. svn Approved by: ed (co-mentor)
* - Implement -q option for pgrep(1).pjd2010-02-121-0/+38
| | | | - Add regression test to test -q option.
* Fixed error checking of pthread(3) functions.ru2010-02-126-19/+19
| | | | | PR: 143807 Submitted by: pluknet (partly)
* Symbolic link to mailwrapper should only be removed if both MK_MAILWRAPPERdelphij2010-02-101-0/+2
| | | | | | and MK_SENDMAIL is "no". Reported by: Rob Farmer <rfarmer at predatorlabs.net>
* As it turns out, fmt(1) is being used by the base system as well as thedelphij2010-02-091-1/+0
| | | | | | | | | ports tree extensively and it is probably a good idea to keep it regardless of NO_MAIL setting. Reported by: Alexander Best Reviewed by: antoine X-MFC-With: r203584
* sh: Make sure the mail2.0 test can actually fail if $MAIL is not touched.jilles2010-02-081-1/+1
|
* Add files for NO_MAIL, NO_SENDMAIL and NO_MAILWRAPPER.delphij2010-02-071-6/+241
| | | | MFC after: 2 weeks
* sh: Do not stat() $MAIL/$MAILPATH in non-interactive shells.jilles2010-02-062-0/+30
| | | | | These may be NFS mounted, and we should not touch them unless we are going to do something useful with the information.
OpenPOWER on IntegriCloud