summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Fix a bug fixed by NetBSD in revision 1.42 of parse.c by christos which causedjmallett2002-06-201-0/+8
| | | | | | | an example Makefile I was showing someone just last night to report a variable as being recursive. Obtained from: NetBSD
* More unsigned char casts to isupper(3).jmallett2002-06-201-2/+2
| | | | Obtained from: NetBSD
* Provide a heuristic for RCS conflicts.jmallett2002-06-201-2/+9
| | | | Obtained from: NetBSD
* Look for wildcards, and balanced meta-characters such as { and } like NetBSDjmallett2002-06-201-2/+18
| | | | | | does. Obtained from: NetBSD
* Expand a buffer to reduce diffs to NetBSD.jmallett2002-06-201-2/+2
| | | | Obtained from: NetBSD
* Diff reduction for great justice against NetBSD, cast to unsigned char whenjmallett2002-06-204-18/+18
| | | | passing an argument to isspace(3).
* Whitespace fixes to line-up EOL escapes whose right-most extraints changed injmallett2002-06-201-15/+15
| | | | the previous revision due to the biggest line changing.
* Cast sp to uintptr_t when doing a compare of it to STACKMAX which is a size_t.jmallett2002-06-202-5/+5
| | | | This messes up some indentation in mdef.h for some macros.
* Style: put static qualifier on definition of static functions.tjr2002-06-201-7/+7
|
* time(1) does not use the shell to execute the specified utility, removetjr2002-06-201-6/+2
| | | | sentence stating it did.
* Make it obvious that command line arguments may be specified for the utilitytjr2002-06-202-10/+11
| | | | | that is to be invoked on the command line. Use "utility" instead of "command" in manual page and usage message for consistency with POSIX.
* A function which takes no arguments has an argument list spelled (void) in thejmallett2002-06-202-2/+2
| | | | world of ANSI C.
* Make locate.updatedb tell about the security risk when it is run as root.eivind2002-06-191-0/+5
|
* Fix a memory leak from previous commit by freeing the possibly expandedjmallett2002-06-191-2/+8
| | | | | string at the first opportunity, being sure to now always allocate the new string from VarPossiblyExpand. Oops.
* Possibly expand the variable name's embedded variables before using it, asjmallett2002-06-191-0/+26
| | | | | | | | | seen (somewhat) in NetBSD. This catches a few extra recursion cases that could be hidden by expanding a NIL variable causing an existing variable to be returned (which caused infinite looping and climbing memory usage in at least one case). Obtained from: NetBSD (in principle)
* Fix duplicate % in %b format introduced in rev 1.22.tjr2002-06-191-5/+6
|
* Let printf(1) tell the difference between zero width/precision andtjr2002-06-191-7/+9
| | | | | | | | unspecified width/precision. PR: 39116 Submitted by: Egil Brendsdal <egilb@ife.no> MFC after: 1 week
* Allow format strings containing "%%" to be reused.tjr2002-06-191-2/+2
| | | | | | PR: 39116 Submitted by: Egil Brendsdal <egilb@ife.no> MFC after: 1 week
* Allow `%' to be written out with an octal escape (\45 or \045).tjr2002-06-191-1/+5
| | | | | | PR: 39116 Submitted by: Egil Brendsdal <egilb@ife.no> MFC after: 1 week
* Indicate that env(1) allows you to supply arguments to the utility ittjr2002-06-192-8/+8
| | | | | | | | | | executes in the usage() message and manual page. Use "utility" instead of "command" in both places to emphasise that shell builtins etc. will not work, and to be consistent with the terminology used by POSIX. PR: 39210 Submitted by: Danny J. Zerkel <dzerkel@columbus.rr.com> MFC after: 1 week
* Don't convert a single space before a tab stop into a tab when thetjr2002-06-191-2/+2
| | | | -i option is used.
* make(I) appeared in PWB UNIX.jmallett2002-06-171-2/+1
|
* Add Standards section.tjr2002-06-171-0/+5
|
* Sort sections, use Dl for the example so it stands out more.tjr2002-06-171-6/+5
|
* Only advance the column position for printable characters, update manualtjr2002-06-172-4/+6
| | | | page to emphasise that we count column positions, not characters.
* Kill superfluous blank line.sobomax2002-06-171-1/+0
|
* Remove 17 June as German national holiday.grog2002-06-161-1/+0
|
* Correct the handling of (for example) the N command by only zeroing thetjr2002-06-161-1/+2
| | | | input space in mf_fgets() if we reach the end of all input files.
* When counting words, check the correct character variable to see whether it'stjr2002-06-161-2/+2
| | | | | | a space or not. Noticed by: bde
* Remove local prototype for main().jmallett2002-06-151-1/+0
|
* Protoize. Remove un-needed cast to char in switch of getopt(3)'s return value.jmallett2002-06-151-14/+10
| | | | FBSDID.
* Remove <sys/types> where we use <sys/param> already.jmallett2002-06-151-8/+5
| | | | protoize.
* Remove obsolescent -tabstop option from Synopsis (it was already removedtjr2002-06-151-12/+17
| | | | | from the usage() message). Document what the -t option does in a more standard place. Add a standard Diagnostics section.
* Allow <blank>s to be used to separate tab stop positions with the -ttjr2002-06-153-5/+27
| | | | | argument, not just ASCII space characters and commas. Don't count non-printing characters when determining column position.
* Update for lukemftp-1.6-beta2.mikeh2002-06-151-1/+16
|
* Sort sections.tjr2002-06-151-10/+10
|
* fstat() returns information about the target of any symbolic link thattjr2002-06-151-2/+2
| | | | was opened, not the link itself. Remove dead code.
* Improve parsing of character and equivalence classes:tjr2002-06-151-4/+9
| | | | | [:*] and [=*] are parsed as `infinitely many repetitions of :' (or *) instead of literal characters (SUSv3)
* Move the #include and #define's to the top of the file.tjr2002-06-141-4/+4
|
* Bump the size of the equivalence set to NCHARS; this file was left outtjr2002-06-141-1/+1
| | | | of a previous commit implementing equivalence classes.
* Use the Cm macro for the clear, init, reset and longname operands.tjr2002-06-141-4/+4
|
* Adjust the exit status to conform to SUSv3 and document the fact it takestjr2002-06-142-19/+29
| | | | multiple `argument' operands.
* Sort sections. Avoid using "The -? option" at the start of option descriptions.tjr2002-06-141-11/+7
|
* Don't treat the trailing ']' of an equivalence class expression as atjr2002-06-141-1/+2
| | | | | character in the set. tr -d '[=a=]' was deleting ]'s as well as a's. Noticed by the textutils test suite.
* Add the P1003.1-2001 -C option which complements the set of characterstjr2002-06-142-29/+58
| | | | (not byte values) specified by the first string argument.
* Implement support for equivalence classes ([=e=]) when the mapping istjr2002-06-143-14/+45
| | | | one-to-one (SUSv3)
* Exit with non-zero status if an input file can not be opened. This wastjr2002-06-141-0/+1
| | | | broken by rev. 1.22.
* Fix one serious bug and one potential problem with in-place editing code:sobomax2002-06-141-70/+60
| | | | | | | | | | | | | - original version of code worked incorrectly when more than one input files were specified - it was moving the last line from the 1st file to be the first line of the 2nd, last line of the 2nd to be the first line of the 3rd and so on; - use mmap()->write() to create temporary file instead of malloc()->read()->write(), which was not only slower, but also did not bother to free allocated memory once backup file was created, potentially leading to memory exhausting when regex is applied to a big file or a large number of small ones.
* beforeinstall target:grog2002-06-131-1/+2
| | | | | - Remove superfluous ; - create destination directories if they don't exist.
* Add two new options:grog2002-06-134-4/+24
| | | | | | | | | -W is like -A (number of days in the future to consider, but also specifies that we don't want special treatment at weekends. -F changes our notion of "Friday" (the day before the weekend). Arguably, calendar(1) is broken to have special treatment of weekends by default, but this method maintains POLA.
OpenPOWER on IntegriCloud