summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Revert part of the previous commit. Keep the example that shows how thenik1999-04-241-0/+18
| | | | | | "-h" flag is used, but use "chown" in the example instead of "file". Prompted by: bde
* Next approach to make loops in interactive interruptable.cracauer1999-04-214-13/+17
| | | | PR: bin/9173
* Typo fix.max1999-04-191-3/+3
|
* Change description of file(1) following symlinks to the truth (namely,nik1999-04-141-28/+16
| | | | | | | | | by default, file(1) does not follow symlinks, the -L flag must be specified. PR: docs/8602 Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp> Reviewed by: nik
* Remove my temporary detection for PR 7059, Tor Egge fixed this bug.cracauer1999-04-131-5/+1
| | | | PR: 7059
* During variable expansion, the internal representation of the expressiontegge1999-04-131-5/+5
| | | | | might be relocated. Handle this case. PR: 7059
* Fix typo in source-explaining comment.cracauer1999-04-121-2/+2
|
* Add a guarded abort() for the problem in PR bin/7059 (no fix so far,cracauer1999-04-121-17/+33
| | | | | | | | this is hairy). Reformat this file to comply to style(9). It had mixed styles before. PR: bin/7059
* When a variable expansion is enclosed in double quotes, the internaltegge1999-04-092-16/+56
| | | | | | | | | | | representation of the expression is quoted. Take care of this when doing pattern matching in conjunction with trimming. #!/bin/sh c=d:e; echo "${c%:e}" PR: NetBSD PR#7231 Noticed by: Havard Eidnes <Havard.Eidnes@runit.sintef.no>
* Update p_flags doc.peter1999-04-061-3/+1
|
* Look at p_lock instead of P_NOSWAP etc as an indicator of unswappability.peter1999-04-061-2/+4
| | | | | (While here, put a #ifndef pgtok around the macro that gets a redefinition warning)
* In interactive shells, break loops to the topmost level when a childcracauer1999-04-031-1/+6
| | | | | | | | | is killed by a signal. (In non-interactive shells - that means a shellscript - the shell just exits, this was already working) PR: bin/9173
* Implement -a flag. A test shell script can be found atcracauer1999-04-032-4/+5
| | | | | | | | | http://www.cons.org/cracauer/download/sh-interrupt/testsuite/test_export.sh The PR also had test cases the new version passes. Fix typo in comment. PR: bin/1030
* -T was missing in the synopsis line.cracauer1999-04-021-2/+2
| | | | Submitted by: BDE
* On FreeBSD/alpha, ps(1) does not correctly report process start timeswpaul1999-04-011-1/+40
| | | | | | | | | | | | | | | | | and CPU runtime because it can't access the user area via /proc/<pid>/mem. This is because the uarea is not mapped into the process address space at USRSTACK on the alpha like it is on the x86. Since I'm haven't been able to wrap my brain around the VM system enough to be able to figure out how to achieve this mapping, and since it's questionable that such an architectural change is correct, I implemented a workaround to allow ps(1) to read the uarea from /dev/kmem using kvm_read() instead of from the process address space via kvm_uread(). The kludge is hidden inside #ifdef __alpha__/#endif so as not to impact the x86. (Note that top(1) probably uses this same gimmick since it works on FreeBSD/alpha.) Reviewed by: dfr
* The immediate execution of traps I introduced in September 1998 (tocracauer1999-04-014-7/+23
| | | | | | | | | | make /etc/rc interruptible in cases when programs hang with blocked signals) isn't standard enough. It is now switched off by default and a new switch -T enables it. You should update /etc/rc to the version I'm about to commit in a few minutes to keep it interruptible.
* sh doesn't support <> redirections.brian1999-03-311-4/+2
| | | | PR: 7325
* Support seconds with -v.brian1999-03-093-13/+55
| | | | | PR: 6308 Submitted by: Max Euston <meuston@jmrodgers.com>
* Don't emit usage() message when no arguments given to -f. Thisjkh1999-02-251-2/+5
| | | | | | | appears to be consistent with other Unixen, like Solaris. PR: 10240 Submitted by: jun_sun@hlla.is.tsukuba.ac.jp
* Clean up some .Os macro uses: quotes are not needed, multiple argumentsfenner1999-02-151-2/+2
| | | | | don't really work if the first one isn't "FreeBSD", and "FreeBSD-Experimental" isn't an OS name.
* Removed occurrences of consecutive repeated words (such as "the the").alex1999-02-121-2/+2
|
* Fix synopsis to match 1003.2. Add text describing the way in whichwollman1999-01-281-10/+19
| | | | | our implementation does not meet 1003.2 (rather than the now outdated ``is expected to comply' language).
* Enable Linux threads support by default.julian1999-01-261-8/+1
| | | | | | | | | This takes the conditionals out of the code that has been tested by various people for a while. ps and friends (libkvm) will need a recompile as some proc structure changes are made. Submitted by: "Richard Seaman, Jr." <dick@tar.com>
* Example "19%y" changed to "%Y" to discourage poor usage.danny1999-01-131-2/+2
|
* Re-enable the options in ps(1) that were disabled with the Linuxjulian1999-01-131-1/+6
| | | | | | threads support. Submitted by: "Richard Seaman, Jr." <dick@tar.com>
* Reviewed by: Luoqi Chen, Jordan Hubbardjulian1998-12-191-1/+3
| | | | | | | | | | | | Submitted by: "Richard Seaman, Jr." <lists@tar.com> Obtained from: linux :-) Code to allow Linux Threads to run under FreeBSD. By default not enabled This code is dependent on the conditional COMPAT_LINUX_THREADS (suggested by Garret) This is not yet a 'real' option but will be within some number of hours.
* Add references to test(1) and expr(1).jkoshy1998-12-181-1/+4
|
* Add cross-references to test(1) and expr(1) respectively.jkoshy1998-12-182-2/+8
| | | | | PR: docs/9111 Submitted by: Josh Gilliam <josh@quick.net>
* Cleaning out old stuff from one of my source trees:peter1998-12-161-5/+14
| | | | use mkdtemp() rather than mktemp() and fix a trivial memory leak.
* Free memory from setmode.imp1998-12-161-2/+3
| | | | Obtained from: OpenBSD
* Use getcwd in stead of using getwd so that we try harder to avoidimp1998-12-161-2/+2
| | | | | | overflowing a buffer. Obtained from: Either OpenBSD or a discussion in bugtraq.
* Free memory obtained from setmode.imp1998-12-162-2/+4
| | | | Obtained from: OpenBSD
* Don't put compiler warning flags in leaf Makefiles.bde1998-12-072-4/+2
|
* CFLAGS+= -Wall -Wformat for all of src/bin. All warnings except 2 minorbde1998-12-071-1/+2
| | | | ones in rmail have been fixed.
* Fixed printf format errors.bde1998-12-071-4/+4
|
* Fixed warnx format errors in printf and csh, and snprintf format errorsbde1998-12-071-2/+12
| | | | | | in sh, by using separate macros for the 1, 2 and 3-arg calls to warnx. (The 3-arg warnx macro in sh/bltin/bltin.h used to require bogus dummy args.)
* Fixed -Wall regression (broken in rev.1.12). Removed unused includes.bde1998-12-071-3/+3
|
* Fixed printf format errors (new bugs in rev.1.7). Fixed a spelling errorbde1998-12-071-7/+7
| | | | | (rev.1.7 blew away most of rev.1.2-1.6; I'm only fixing blowing away of rev.1.4).
* Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).archie1998-12-062-2/+3
|
* Rev 1.13 fixes PR bin/8958obrien1998-12-061-1/+1
|
* There is a bug in /bin/pax -s option processing. The code assumes that allobrien1998-12-051-2/+2
| | | | | | | | | | | | | pattern matches will occur at offset zero of the source string. The bug causes the input source string pointer to be incremented by the offset of the end of the match, instead of it's length. The fix is to only increment the pointer by the length of the pattern match (eo-so). Of course, the one example in the man page shows a situation where the match occurs at offset 0. Submitted by: John W. DeBoskey <jwd@unx.sas.com> Obtained from: freebsd-current@freebsd.org
* Fix typo. "If the an entry" --> "If an entry"billf1998-12-021-2/+2
| | | | | PR: docs/8140 Submitted by: Sue Blake <sue@vedanix.welearn.com.au>
* superceded -> superseded, which after some debate on #FreeBSD is inbillf1998-11-301-2/+2
| | | | | | | fact the proper spelling. PR: docs/8697 Submitted by: Sascha Blank <blank@fox.uni-trier.de>
* changable -> changeablebillf1998-11-301-2/+2
| | | | | PR: docs/8697 Submitted by: Sascha Blank <blank@fox.uni-trier.de>
* Describe `bs=n' more precisely. Fixed some English errors.bde1998-11-291-6/+8
| | | | Obtained from: OpenBSD
* Fix formatting of %CPU value on alpha.dfr1998-11-251-3/+3
| | | | Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
* Indicate that the thing not found was not /bin/pwd but rather $CWD (or .).jkh1998-11-211-2/+2
|
* Don't use mmap() for non-regular files, since st_size is only meaningfulbde1998-11-181-2/+2
| | | | | | | | for regular files. This fixes recent breakage of cp'ing from /dev/zero. /dev/zero doesn't support mmap(), but the device driver mmap routines are not called for mapping 0 bytes, so the error was not detected. mmap() can't even be used for cp'ing special files that support mmap(), since there is general way to determine the file size.
* Use mmap for file coping. 5-10% faster than the read system call.wosch1998-11-141-1/+2
|
* Fix behaviour for 'mkdir -m 777 / /tmp/foo'. Play "guess the style bug"msmith1998-10-231-6/+8
| | | | | | with Bruce again. Reported by: bde
OpenPOWER on IntegriCloud