aboutsummaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* MFC rev. 1.57:Yaroslav Tykhiy2006-08-061-0/+1
| | | | | | | | Do not forget to increment the input line counter when reading a word spanning multiple lines. Notes: svn path=/stable/5/; revision=161021
* MFC: maintainer straggers, and bring on down the LOCKS file for reference.Mark Murray2006-07-091-2/+0
| | | | Notes: svn path=/stable/5/; revision=160220
* MFC rev. 1.54: be pedantic and do fts_close() when done.Maxim Konovalov2006-05-011-0/+1
| | | | | | | Approved by: re (kensmith) Notes: svn path=/stable/5/; revision=158221
* MFC 1.39Brad Davis2006-03-301-1/+1
| | | | | | | | | Fix a typo Approved by: re@, ceri@ Notes: svn path=/stable/5/; revision=157279
* MFC important changes:Stefan Farfeleder2005-12-2615-105/+369
| | | | | | | | | | | | | | - Add -v and -V to the command builtin. - Return value from unalias. - Fixes for the errexit mode. - Avoid segfaults on signals. - Add the times builtin. - Make 'set +o' output POSIX compliant. - Correctly quoted output of trap. - Man page updates. Notes: svn path=/stable/5/; revision=153737
* MFC through rm.c 1.53, rm.1 1.38, and Makefile 1.18.Doug Barton2005-10-083-30/+64
| | | | | | | | | | | | This includes the recent change to improve handling of the -P flag on read-only files, addition of the -I option for better handling of recursive deletes, a test for removal of / in the argument list, and related mdoc and comment changes and improvements. The Makefile change removes a spurious SRCS= Notes: svn path=/stable/5/; revision=151089
* Merge kenv.1:1.12, kenv.c:1.8 from HEAD to RELENG_5:Robert Watson2005-09-202-9/+20
| | | | | | | Add a "-q" quiet flag to kenv so that warnings can be suppressed. Notes: svn path=/stable/5/; revision=150375
* MFC: Improved descriptions of block size handling.Gary W. Swearingen2005-09-071-37/+48
| | | | | | | | PR: docs/84765 Approved by: keramida Notes: svn path=/stable/5/; revision=149861
* MFC rev. 1.05:Jesus R. Camou2005-09-021-4/+17
| | | | | | | | | | | o The ways to escape an alias. o Fix in the alias syntax lines. o Refero to the Aliases subsection. Approved by: trhodes (mentor) Notes: svn path=/stable/5/; revision=149707
* MFC 1.89:Craig Rodrigues2005-08-251-15/+0
| | | | | | | | | | Remove EXAMPLES section which gives a non-POSIX compliant use of the sort command. The -S flag to ls does the same thing. PR: standards/83919 Notes: svn path=/stable/5/; revision=149440
* MFC 1.47:Xin LI2005-07-101-1/+1
| | | | | | | | | | | | | | Fix a bug when shell expansion is done against dangling symlinks, by converting the stat() call to a lstat() call, which will cover the situation. One can exercise this bug by referring a dangling link with something like */the-link. Submitted by: Simon 'corecode' Schubert [corecode fs ei tum de] Obtained from: NetBSD via DragonFlyBSD (NetBSD rev. 1.51 and DragonFly rev. 1.6) Notes: svn path=/stable/5/; revision=147886
* MFC rev. 1.68: terminate an endless loop sh -T goes into in dowait()Maxim Konovalov2005-05-301-1/+2
| | | | | | | around waitproc(). Notes: svn path=/stable/5/; revision=146805
* MFC: 1.20 printed output flags (onocr) and (onlret)Andrey A. Chernov2005-05-261-2/+2
| | | | | | | PR: 81256 Notes: svn path=/stable/5/; revision=146639
* MFC 1.18: There is no /etc/rc.network anymore.Giorgos Keramidas2005-05-121-2/+3
| | | | Notes: svn path=/stable/5/; revision=146128
* MFC rev. 1.86: fix a typo.Maxim Konovalov2005-05-011-1/+1
| | | | Notes: svn path=/stable/5/; revision=145778
* MFC: rev 1.52: Support \H, \h, \w, \W, \$ string expansion in the prompt.David E. O'Brien2005-03-031-4/+91
| | | | Notes: svn path=/stable/5/; revision=143084
* MFC: rev 1.9; Respect LC_MESSAGES locale category while handling ofAlexey Zelkin2005-02-271-0/+2
| | | | | | | NLS catalogs Notes: svn path=/stable/5/; revision=142678
* MFC 1.32 1.33:Tom Rhodes2005-02-261-1/+7
| | | | | | | | | | Note how cp(1) handles directories ending in "/" PR: 75774 Submitted by: Mike Meyer <mwm@mired.org> (original version) Notes: svn path=/stable/5/; revision=142547
* MFC 1.22 and 1.23Tom Rhodes2005-02-261-1/+18
| | | | | | | | | | Add information on utilities which may or may not be aware of file flags. PR: 55653 Submitted by: Tony Maher <tonymaher@optushome.com.au> (original version) Notes: svn path=/stable/5/; revision=142546
* Sync ps(1) in RELENG_5 with HEAD:Xin LI2005-02-223-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC ps.1 revision 1.84 date: 2005/02/14 16:56:15; author: delphij; state: Exp; lines: +22 -10 Several improvements to ps.1: - Document the fact that empty heading text suppresses the heading line (e.g. 'ps -o pid='), as this is very useful in scripts. - Describe logname keyword more completely. - Describe the printing of arguments more completely. - Put lockname in the correct alphabetical order in the list of all keywords. - Correct sentence in standards section. Submitted by: Jilles Tjoelker <jilles at stack nl> PR: docs/73618 MFC After: 1 week MFC ps.1 revision 1.83, ps.c revision 1.110 date: 2005/02/09 17:37:38; author: ru; state: Exp; lines: +2 -3 Sync program's usage() with manpage's SYNOPSIS. MFC Makefile revision 1.27 date: 2005/01/27 13:42:40; author: delphij; state: Exp; lines: +1 -1 ps(1) is WARNS=6 on all Tier-1 platforms as far as I can test, so use default WARNS level from bin/Makefile.inc MFC ps.1 revision 1.82 date: 2005/01/10 08:39:24; author: imp; state: Exp; lines: +1 -0 /*- or .\"- or #- to begin license clauses. MFC Makefile revision 1.26 date: 2004/11/13 17:12:22; author: ru; state: Exp; lines: +0 -2 Removed bitrot. Discussed with: ru Notes: svn path=/stable/5/; revision=142205
* MFC ps.c revision 1.108Christian S.J. Peron2005-02-131-0/+22
| | | | | | | | | | | | | | | | | | | date: 2004/11/14 19:30:02; author: csjp; state: Exp; lines: +25 -0 Currently if the user specifies -e and procfs is not mounted on /proc, printing of the process environment will fail silently. -define a function which will check to see if procfs is mounted on /proc -Implement this test if the user specified -e -If procfs is not mounted on /proc and -e was specified, print a warning. informing the user that procfs(5) is required. MFC ps.c revision 1.108 date: 2004/11/19 16:11:54; author: csjp; state: Exp; lines: +6 -9 Use statfs instead of getmntinfo(). This will make the procfs checks play nicer in prisons. It also simplifies things. Notes: svn path=/stable/5/; revision=141828
* MFC v1.71Christian S.J. Peron2005-02-121-1/+1
| | | | | | | | | | | | | | | Log: Since it is not un-common for a process's resident set size (rss) to exceed 10 megabytes in size (especially in X), bump the max column width from 4 bytes to 5. This will make the ps auxw output uniform again when a process's rss exceeds 10 megs. It should be noted that when 5 digits becomes to small, other solutions should be explored such as displaying them in megabytes or having ps automatically re-size column widths. Notes: svn path=/stable/5/; revision=141711
* MFC:Christian Brueffer2005-02-084-9/+13
| | | | | | | | | Scheduled mdoc(7) sweep. Original revisions by: ru Notes: svn path=/stable/5/; revision=141517
* MFC: rev. 1.95 by ceriChristian Brueffer2005-02-081-1/+1
| | | | | | | Correct typo. Notes: svn path=/stable/5/; revision=141516
* MFC src/bin/mkdir/mkdir.c,v 1.29:David Schultz2005-02-061-1/+1
| | | | | | | | | Don't read the byte at *argv[strlen(*argv) + 1]. PR: 71743 Notes: svn path=/stable/5/; revision=141408
* MFC: Don't descend into directories when -d is set and the directory itselfBrian Somers2005-01-243-2/+19
| | | | | | | | | doesn't match. PR: 28095 Notes: svn path=/stable/5/; revision=140741
* MFC: (rev 1.84) document the actual behaviour for displaying the `Total'Joerg Wunsch2005-01-181-3/+5
| | | | | | | line. Notes: svn path=/stable/5/; revision=140417
* MFC: -p fixes.Ruslan Ermilov2005-01-091-7/+8
| | | | Notes: svn path=/stable/5/; revision=139939
* MFC rev. 1.94: add a missed "." .Maxim Konovalov2004-12-271-1/+1
| | | | Notes: svn path=/stable/5/; revision=139354
* Merge ps.1:1.80 and ps.1:1.81 from HEAD to RELENG_5:Robert Watson2004-12-221-6/+4
| | | | | | | | | | | | | | | | date: 2004/12/22 09:04:47; author: rwatson; state: Exp; lines: +0 -1 Remove single line containing the word "KLD" ommitted in ps.1:1.80. Pointed out by: ru (some time ago) date: 2004/11/29 12:00:24; author: rwatson; state: Exp; lines: +4 -5 Point at the mac(4) man page when describing the -Z option. Remove reference to /dev/lomac, which is no longer used by mac_lomac(4). MFC after: 3 days Notes: svn path=/stable/5/; revision=139172
* MFC 1.19:Giorgos Keramidas2004-12-211-13/+8
| | | | | | | Group equivalent flags together and delete the `aliases' section. Notes: svn path=/stable/5/; revision=139151
* MFC 1.24:Yaroslav Tykhiy2004-12-101-18/+30
| | | | | | | | | Fix off-by-one errors and potential buffer overruns in handling file and link names that reach the allowed maximum for old tar and ustar archive formats. Notes: svn path=/stable/5/; revision=138658
* MFC rm.1,v 1.32-1.33; rm.c 1.51: -I option which asks for confirmationXin LI2004-11-282-4/+69
| | | | | | | | once if recursively removing directories or if more than 3 files are listed in the command line. Notes: svn path=/stable/5/; revision=138155
* MFC: unsetting an undefined variable or function is not an error.Dag-Erling Smørgrav2004-09-302-2/+2
| | | | | | | | | PR: standards/45738 Submitted by: Matthias Andree <matthias.andree@web.de> Approved by: re (scottl) Notes: svn path=/stable/5/; revision=135950
* This commit was manufactured by cvs2svn to create branch 'RELENG_5'.cvs2svn2004-08-184-364/+0
| | | | Notes: svn path=/stable/5/; revision=133968
* Add a "fillchar" command line argument to dd(1) that permits the userRobert Watson2004-08-155-2/+32
| | | | | | | | | | to specify an alternative padding character when using a conversion mode, or when using noerror with sync and an input error occurs. This facilities reading old and error-prone media by allowing the user to more effectively mark error blocks in the output stream. Notes: svn path=/head/; revision=133762
* Change the behaviour of `-v' so that, e.g., stepping a month backYaroslav Tykhiy2004-08-092-1/+30
| | | | | | | | | | | | | | | | | | | | on March 31 won't take you to March 2 or 3 (now the result will be the last day of February.) In general, now stepping by months from the last days of the current month A will take you to the very last day of the target month B if B is shorter than A. The previous version would just step to March 31 and rely on mktime(3) to correct the date. Despite its simplicity, such way was counter-intuitive to users and caused pain to shell script writers. Noticed by: Igor Timkin <ivt at gamma dot ru> Approved by: brian MFC after: 2 weeks Notes: svn path=/head/; revision=133381
* Join the 21st century: Cryptography is no longer an optional componentColin Percival2004-08-061-1/+0
| | | | | | | | | | | | | of releases. The -DNOCRYPT build option still exists for anyone who really wants to build non-cryptographic binaries, but the "crypto" release distribution is now part of "base", and anyone installing from a release will get cryptographic binaries. Approved by: re (scottl), markm Discussed on: freebsd-current, in late April 2004 Notes: svn path=/head/; revision=133196
* Now that we have gcc 3.4, we can flip ia64 to using a dynamically linkedGordon Tetlow2004-08-061-1/+1
| | | | | | | | | /bin and /sbin. Reviewed by: marcel (via pluto1) Notes: svn path=/head/; revision=133187
* Allow for capital letters as size suffixes.Pawel Jakub Dawidek2004-07-311-8/+20
| | | | | | | | Inspired by: le Approved by: green (maintainer) Notes: svn path=/head/; revision=132933
* Currently if a mount point is not accessible by the calling user,Christian S.J. Peron2004-07-202-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | invalid information will be printed if the -t flag is specified. $ df -t ufs Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 495726 139944 316124 31% / /dev/ad0s1e 253678 6438 226946 3% /tmp /dev/ad0s1f 56206340 13594248 38115586 26% /usr /dev/ad0s1d 694126 19812 618784 3% /var /dev/ad0s1d 694126 19812 618784 3% /var $ Note that the mount point which is not accessible shows up as the previous file system that was printed. The reason for this is that df -t will call statfs(2) on the pathname supplied by getfsstat(2). This is done to refresh the file system statistics in the event that a previous file system had a long delay in providing its stats. This change affects the df utility in the following ways: o Teach df has to deal with statfs(2) failing. If statfs(2) fails, fall back on the possibly stale stats provided by the initial call to getfsstat(2). o Print a warning that the fs stats could possibly be stale o Modify the man page and document this new behavior as a bug. Approved by: bmilekic (mentor) PR: 68165 Notes: svn path=/head/; revision=132465
* Use warn() instead of perror().Tim J. Robbins2004-07-202-4/+4
| | | | Notes: svn path=/head/; revision=132433
* Give the most awesome example of how to parse the output of dateAlfred Perlstein2004-07-171-0/+8
| | | | | | | | | back into epoch time. Everytime I'm asked to do this by someone I have to spend about ten minutes recreating the same command line. So record it under examples. Notes: svn path=/head/; revision=132272
* Remove BUGS section that talked about missing multibyte character support.Tim J. Robbins2004-07-121-5/+1
| | | | | | | We have support now that the regular expression routines do. Notes: svn path=/head/; revision=132029
* KANJI and DSPMBYTE are now "on" by default in the tcsh 6.13.00 distribution.Mark Peek2004-07-112-24/+34
| | | | Notes: svn path=/head/; revision=131966
* Document missing multibyte character handling in utilities specifiedTim J. Robbins2004-07-034-4/+20
| | | | | | | by POSIX. Notes: svn path=/head/; revision=131513
* Clarify: test compares strings by binary value, not "ASCII value".Tim J. Robbins2004-07-031-3/+3
| | | | Notes: svn path=/head/; revision=131512
* Deal with double whitespace.Ruslan Ermilov2004-07-039-21/+23
| | | | Notes: svn path=/head/; revision=131505
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-0218-156/+302
| | | | Notes: svn path=/head/; revision=131484
* Removed trailing whitespace.Ruslan Ermilov2004-07-021-1/+1
| | | | Notes: svn path=/head/; revision=131472