aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Guard against argv[0] being NULL.Tim Kientzle2004-07-191-6/+11
| | | | | | | Thanks to: Tim J Robbins Notes: svn path=/head/; revision=132406
* Make it clearer what means 'won't work' for .if string == ${VAR}.Hartmut Brandt2004-07-191-5/+12
| | | | | | | | | | | | | | | | Replace the use of '=' in conditionals in the examples by the more correct '=='. Clarify the example explaining that .for expansion takes place before .if handling by showing the correct code instead of saying 'the other way around'. Change a variable name there so the example is more parseable to the human reader. PR: docs/65400 Submitted by: Roman Neuhauser <neuhauser@chello.cz> Notes: svn path=/head/; revision=132405
* Avoid passing negative values to tolower() on machines with signed chars.Tim J. Robbins2004-07-191-1/+1
| | | | Notes: svn path=/head/; revision=132404
* Sort sections.Tim J. Robbins2004-07-191-3/+3
| | | | Notes: svn path=/head/; revision=132397
* Move exit status information into a DIAGNOSTICS section. Add an ENVIRONMENTTim J. Robbins2004-07-191-3/+15
| | | | | | | | section. Re-add a sentence from the BUGS section that went missing in the previous commit. Notes: svn path=/head/; revision=132396
* Add support for multibyte characters. While here, fix a longstanding bug inTim J. Robbins2004-07-192-59/+68
| | | | | | | | the implementation of the -d option: we were skipping too many characters when a non-alphanumeric character was encountered. Notes: svn path=/head/; revision=132394
* Point out in the BUGS section that look expects input files to haveTim J. Robbins2004-07-191-0/+7
| | | | | | | been sorted with LC_COLLATE=C. Notes: svn path=/head/; revision=132393
* Today is a good day to add myself here :)Gleb Smirnoff2004-07-191-0/+1
| | | | | | | Approved by: julian (mentor) Notes: svn path=/head/; revision=132385
* Fix some misspellings, document the TAPE environmentTim Kientzle2004-07-191-2/+16
| | | | | | | variable and the default tape device. Notes: svn path=/head/; revision=132377
* Don't forget the arguments for -M and -N in the DESCRIPTION section.Stefan Farfeleder2004-07-181-2/+2
| | | | Notes: svn path=/head/; revision=132370
* Remove the dependency of the :C/regexp/replacement/ variable modifierGiorgos Keramidas2004-07-181-8/+7
| | | | | | | | | | | | from the :S modifier which follows a bit further below. This way the reader can read each of these two descriptions without having to jump back and forth in the manpage. PR: docs/26943 Submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su> Notes: svn path=/head/; revision=132328
* Revert WARNS bump until I figure out why this does not work.Johan Karlsson2004-07-171-1/+0
| | | | Notes: svn path=/head/; revision=132310
* Support readlink(2) better. Readlink does not nul terminate theAlfred Perlstein2004-07-1710-20/+32
| | | | | | | | | | | result buffer, so we need to format it ourselves. The problem is that the length is stored as the return value from readlink, so we need to pass the return value from our syscall into print_arg. Motivated by: truss garbage on my screen from reading /etc/malloc.conf. Notes: svn path=/head/; revision=132308
* When reporting reciept of a signal, print the signal's name.Alfred Perlstein2004-07-173-7/+26
| | | | Notes: svn path=/head/; revision=132306
* Remove unused user_uname variable.Tim Kientzle2004-07-172-16/+8
| | | | | | | | | Add range-checking to argument of -b. Thanks to: Tim J Robbins Notes: svn path=/head/; revision=132305
* Make bsdtar the default system tar. This makes /usr/bin/tar a symlinkTim Kientzle2004-07-171-1/+1
| | | | | | | | pointing to /usr/bin/bsdtar by default. To make it point to /usr/bin/gtar, you can define WITH_GTAR. Notes: svn path=/head/; revision=132281
* Validate -o usage. Strictly speaking, -o only makes sense with -x,Tim Kientzle2004-07-172-0/+8
| | | | | | | | | of course, but I make an effort to accomodate GNU tar scripts that use -o with -c (with a meaning that totally contradicts SUSv2) by only issuing a benign warning message in that case. Notes: svn path=/head/; revision=132279
* Mention in the BUGS section that write and wall bogusly use the sender'sTim J. Robbins2004-07-172-1/+15
| | | | | | | | LC_CTYPE setting instead of the receiver's when determining which characters are printable. Notes: svn path=/head/; revision=132278
* Document incorrect handling of multibyte characters.Tim J. Robbins2004-07-175-5/+23
| | | | Notes: svn path=/head/; revision=132277
* Document the limitation that multibyte characters cannot be used asTim J. Robbins2004-07-171-1/+6
| | | | | | | delimiters with the 's' and 'y' commands. Notes: svn path=/head/; revision=132275
* Include <string.h> to get memset and strcmp prototype.Johan Karlsson2004-07-162-1/+3
| | | | | | | | | Sort includes. This is now WARNS=2 clean, bump WARNS to keep it clean. Notes: svn path=/head/; revision=132253
* Add support for multibyte characters.Tim J. Robbins2004-07-161-4/+9
| | | | Notes: svn path=/head/; revision=132245
* Avoid passing negative values to <ctype.h> functions on machines withTim J. Robbins2004-07-161-3/+3
| | | | | | | signed chars. Notes: svn path=/head/; revision=132240
* Document incorrect handling of multibyte characters.Tim J. Robbins2004-07-161-1/+3
| | | | Notes: svn path=/head/; revision=132239
* Document incorrect handling of multibyte characters.Tim J. Robbins2004-07-151-1/+5
| | | | Notes: svn path=/head/; revision=132206
* Avoid passing negative values to isdigit() on machines with signed chars.Tim J. Robbins2004-07-151-5/+5
| | | | Notes: svn path=/head/; revision=132205
* Avoid passing negative values to isspace() on machines with signed chars.Tim J. Robbins2004-07-151-1/+1
| | | | Notes: svn path=/head/; revision=132202
* Respect locale settings from the environment.Tim J. Robbins2004-07-151-0/+3
| | | | Notes: svn path=/head/; revision=132201
* Avoid passing negative values to isspace() on systems with signed chars.Tim J. Robbins2004-07-151-1/+1
| | | | Notes: svn path=/head/; revision=132200
* Respect locale settings from the environment.Tim J. Robbins2004-07-152-0/+6
| | | | Notes: svn path=/head/; revision=132198
* Don't pass negative values into <ctype.h> functions on machinesTim J. Robbins2004-07-151-3/+3
| | | | | | | with signed chars. Notes: svn path=/head/; revision=132193
* Print size_t with %zu, not %d.Tim J. Robbins2004-07-151-1/+1
| | | | Notes: svn path=/head/; revision=132192
* Respect locale settings from the environment.Tim J. Robbins2004-07-151-0/+3
| | | | Notes: svn path=/head/; revision=132191
* Add incorrect multibyte character handling to the already long listTim J. Robbins2004-07-151-1/+3
| | | | | | | of bugs. Notes: svn path=/head/; revision=132190
* Use freopen() instead of a nasty hack.Tim J. Robbins2004-07-151-2/+1
| | | | Notes: svn path=/head/; revision=132189
* Document incorrect handling of multibyte characters.Tim J. Robbins2004-07-151-1/+5
| | | | Notes: svn path=/head/; revision=132188
* Ensure that suffix matches occur on character boundaries.Tim J. Robbins2004-07-151-4/+32
| | | | Notes: svn path=/head/; revision=132187
* Document line length and multibyte character limitations.Tim J. Robbins2004-07-151-1/+4
| | | | Notes: svn path=/head/; revision=132184
* Use err() instead of perror(), exit().Tim J. Robbins2004-07-151-1/+1
| | | | Notes: svn path=/head/; revision=132182
* Use warn() instead of perror().Tim J. Robbins2004-07-151-1/+1
| | | | Notes: svn path=/head/; revision=132180
* Use warn() instead of perror().Tim J. Robbins2004-07-152-4/+5
| | | | Notes: svn path=/head/; revision=132178
* Make the day/month ordering dependent on the current locale byTim Kientzle2004-07-154-4/+17
| | | | | | | | testing the locale at program startup and setting a flag, then using that flag to determine appropriate strftime() arguments. Notes: svn path=/head/; revision=132169
* Document the -E and -a options as being extensions.Tim J. Robbins2004-07-141-2/+5
| | | | Notes: svn path=/head/; revision=132147
* Update BUGS section to reflect current state of multibyte character support.Tim J. Robbins2004-07-141-4/+11
| | | | Notes: svn path=/head/; revision=132146
* Make the 'y' (translate) command aware of multibyte characters.Tim J. Robbins2004-07-145-17/+145
| | | | Notes: svn path=/head/; revision=132145
* Fix description of cmap_lookup_hard().Tim J. Robbins2004-07-141-1/+1
| | | | Notes: svn path=/head/; revision=132144
* Remove unused member of struct csclass: csc_value.Tim J. Robbins2004-07-141-1/+0
| | | | Notes: svn path=/head/; revision=132143
* Splay the left and right subtrees on min - 1 and max + 1, respectively,Tim J. Robbins2004-07-141-34/+20
| | | | | | | | before trying to coalesce. Forgetting to splay caused us to miss many opportunities for coalescing. Notes: svn path=/head/; revision=132142
* Overhaul lputs() to deal with multibyte characters, characters that takeTim J. Robbins2004-07-131-24/+53
| | | | | | | up more than one column position, and null bytes. Notes: svn path=/head/; revision=132083
* Add support for multibyte characters.Tim J. Robbins2004-07-132-22/+47
| | | | Notes: svn path=/head/; revision=132078