aboutsummaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Fix the borokeness that crept in with rev 1.10 of parser.c, the shJoerg Wunsch1996-02-032-3/+6
| | | | | | | | | | | didn't correctly start background jobs anymore. Strange that nobody was complaining... Add a dummy target for `builtins' in the Makefile, to prevent it from attempting to build this file by compiling builtins.c. :-/ Notes: svn path=/head/; revision=13882
* Fix some incorrect locations in the FILES sections of some man pages.Mike Pritchard1996-02-021-3/+3
| | | | Notes: svn path=/head/; revision=13851
* Fix some spelling errors.Mike Pritchard1996-01-291-5/+5
| | | | Notes: svn path=/head/; revision=13719
* Use the correct buffer size from limits.h for the error bufferMike Pritchard1996-01-201-2/+3
| | | | | | | | | passed to kvm_open. Closes PR# 476. Submitted by: Jeffrey Hsu <hsu@freebsd.org> Notes: svn path=/head/; revision=13514
* Remove unused include of utmp.h from print.c. Closes PR# 486.Mike Pritchard1996-01-201-2/+1
| | | | | | | Submitted by: Tom Samplonius <tom@haven.uniserve.com> Notes: svn path=/head/; revision=13513
* Partially fixed negative and truncated "Avail" counts in df output.Bruce Evans1996-01-141-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes PR943. ffs/ffs_vfsops.c: ffs_statfs() multiplied by (100 - minfree) as part of calculating the minfree percentage (complemented in 100%), so with the standard minfree of 8, it was broken for file systems of size >= 1TB/92 = 11GB. Use the standard freespace() macro instead. This also fixes a rounding bug (the "Avail" count was sometimes 1 too small). ffs/* (not fixed): The freespace() macro multiplies by minfree, so with the standard minfree of 8, it is broken for file systems of size >= 1TB/8 = 128GB. This bug is more serious since it affects block allocation. ffs/ffs_alloc.c (not fixed): Ordinary users are sometimes allowed to allocate 1 (partial) block too many so that the "Avail" count goes negative. E.g., if there is 1 fragment available and the file is fairly large, one more full block is allocated. df/df.c: ufs_df() used/uses essentially the same code as ffs_statfs(), so it had/has the same bugs. ufs_df() gratuitously replaced "Avail" counts of < 0 by 0, so it gave different results for non-mounted file systems in this case. Notes: svn path=/head/; revision=13424
* oops. I forgot to add the "[-U username]" option to the usage string.Peter Wemm1996-01-121-2/+2
| | | | Notes: svn path=/head/; revision=13399
* This commit was generated by cvs2svn to compensate for changes in r13122,Peter Wemm1995-12-302-0/+0
| | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=13123
* Print dev minor #'s > 255 in hex.Joerg Wunsch1995-12-301-3/+7
| | | | | | | Reviewed by: jkh, kuku, phk Notes: svn path=/head/; revision=13120
* Small man page tweaks:Joerg Wunsch1995-12-301-2/+12
| | | | | | | | | | . mention the need for procfs . make it clear that default sorting is first by ctty, then by PID Submitted by: schweikh@ito.uni-stuttgart.de (Jens Schweikhardt) Notes: svn path=/head/; revision=13117
* Implement a new option to ps.. `-U username'. This allows you toPeter Wemm1995-12-262-4/+19
| | | | | | | | | list the processes belonging to a particular user without having to use `-u' and grepping for the username. Basically you can now get a short `ps -x' like list (with more space for the command) for other users. Notes: svn path=/head/; revision=13020
* Restored formatting from the old printf/printf.c.Bruce Evans1995-12-141-5/+5
| | | | Notes: svn path=/head/; revision=12845
* The shell incorrectly gave & precedence over ;. This breaks theJoerg Wunsch1995-12-101-23/+19
| | | | | | | | | | | | | | traditional behaviour, and it violates Posix.2. Fixes PR # bin/880: /bin/sh incorrectly parse... Fixes also an earlier problem report about the shell not evaluating loops correctly. (Not files via GNATS.) Submitted by: nnd@itfs.nsk.su (Nickolay N. Dudorov) Notes: svn path=/head/; revision=12733
* Move out some of the shell builtin bogosity from printf's source toJoerg Wunsch1995-12-101-1/+10
| | | | | | | sh's builtin/bltin.h. Notes: svn path=/head/; revision=12730
* Fix my own brokeness for the colon operator, when one of the argumentsJoerg Wunsch1995-11-181-33/+31
| | | | | | | | was a valid integer. The actual decision between integer and string is now context-dependant on the operator being used. Notes: svn path=/head/; revision=12378
* A fix for the "cd -" coredump on a brand new /bin/sh. The problem wasPeter Wemm1995-11-141-2/+5
| | | | | | | | | noticed on a NetBSD bugs mailing list but this is entirely my own work. Inspired by: Scott Reynolds <scottr@plexus.com>, for NetBSD Notes: svn path=/head/; revision=12273
* Fixed descriptions of ignpar and parmrk.Bruce Evans1995-11-111-3/+3
| | | | Notes: svn path=/head/; revision=12202
* Implement allowing 'set -v' in the middle of a script to work.Peter Wemm1995-11-031-78/+103
| | | | | | | | | | | | | | | | | | This means that a script containing: echo 1 set -v echo 2 will now produce output, like it does on SYSV machines and other 'proper' /bin/sh implementations.. This is done by a slight restructure of the input processor allowing it to read chunks from the file at a time, but process the data by line from the chunk. Obtained from: Christos Zoulas for NetBSD. <christos@deshaw.com> Notes: svn path=/head/; revision=12043
* I add #include <sys/user.h>Poul-Henning Kamp1995-10-282-2/+4
| | | | Notes: svn path=/head/; revision=11890
* Fix -h option:Andrey A. Chernov1995-10-281-2/+2
| | | | | | | sense symlink even it is unresolved Notes: svn path=/head/; revision=11855
* Change local to LC_ALL, there is no bitmaskAndrey A. Chernov1995-10-261-2/+3
| | | | Notes: svn path=/head/; revision=11809
* Change locale to LC_ALL, there no bitmaskAndrey A. Chernov1995-10-261-2/+3
| | | | Notes: svn path=/head/; revision=11808
* fix bad dependencies (LIBMATH -> LIBM)Torsten Blum1995-10-251-2/+2
| | | | Notes: svn path=/head/; revision=11779
* Add missing reaction on LC_ALL and LC_COLLATEAndrey A. Chernov1995-10-233-7/+14
| | | | Notes: svn path=/head/; revision=11748
* Add setlocale LC_CTYPEAndrey A. Chernov1995-10-231-1/+3
| | | | Notes: svn path=/head/; revision=11747
* Remove unneded ctype.h everywhereAndrey A. Chernov1995-10-2315-29/+17
| | | | | | | Add setlocale LC_TIME Notes: svn path=/head/; revision=11746
* Change LC_ALL to LC_CTYPE|LC_TIME - small optimizationAndrey A. Chernov1995-10-231-2/+2
| | | | Notes: svn path=/head/; revision=11745
* Add setlocale LC_CTYPE|LC_TIMEAndrey A. Chernov1995-10-231-1/+3
| | | | Notes: svn path=/head/; revision=11744
* Remove unneded ctype.hAndrey A. Chernov1995-10-231-2/+1
| | | | Notes: svn path=/head/; revision=11743
* Add setlocale LC_ALLAndrey A. Chernov1995-10-231-1/+3
| | | | Notes: svn path=/head/; revision=11740
* Add setlocale(LC_TIME,...Andrey A. Chernov1995-10-231-1/+3
| | | | Notes: svn path=/head/; revision=11738
* Wrong library was picked by edAndrey A. Chernov1995-10-222-6/+6
| | | | Notes: svn path=/head/; revision=11684
* o rename ulimit -p into ulimit -u, so we are in agreement with bashJoerg Wunsch1995-10-213-7/+12
| | | | | | | | | | o fix brokeness for 1>&5 redirection, where `5' was an invalid file descriptor, but no error message has been generated o fix brokeness for redirect to/from myself case Notes: svn path=/head/; revision=11601
* Implement the "ulimit" builtin. This is the analogon to csh's "limit"Joerg Wunsch1995-10-193-3/+269
| | | | | | | | | | | | command and badly needed in sh(1) for everybody who wants to modify the system-wide limits from inside /etc/rc. The options are similar to other system's implemantations of this command, with the FreeBSD additions for -m (memoryuse) and -p (max processes) that are not available on other systems. Notes: svn path=/head/; revision=11571
* Fix my breakage of the $0 handling during $ENV processing.Joerg Wunsch1995-10-091-2/+2
| | | | | | | Since the broken version went into 2.1, this fix should, too. Notes: svn path=/head/; revision=11377
* Handle trailing slashes in source filenames correctly. E.g., rewriteBruce Evans1995-10-071-5/+11
| | | | | | | | | | | | `mv foo/ ../..' to `mv foo/ ../../foo/', not to `mv foo/ ../../'. The latter caused a panic. Before the trailing slash changes in the kernel, the trailing slashes caused the rename() for this mv to fail earlier, so there was no panic in 2.0. Fixes part of PR 760. Notes: svn path=/head/; revision=11298
* Correctly build the secure ed(1) only if secure/ exists.Mark Murray1995-10-031-2/+2
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=11149
* Preserve sticky bit for `cp -pR'. It was already preserved for `cp -R'.Bruce Evans1995-10-031-2/+3
| | | | | | | This also fixes loss of the sticky bit for `mv' across file systems. Notes: svn path=/head/; revision=11146
* Fix exit status. `cat no-such-file >/dev/null' exited with status 0.Bruce Evans1995-10-031-2/+7
| | | | | | | | This has been broken since cat's own err() function was sloppily replaced by the library functions warn() and err(). Notes: svn path=/head/; revision=11145
* Make the mkinit internal command issue an #undef for each #define, toJoerg Wunsch1995-10-011-3/+15
| | | | | | | avoid "duplicate definition" warnings. Notes: svn path=/head/; revision=11113
* Posixize:Joerg Wunsch1995-10-011-1/+4
| | | | | | | | | | | | | | | | | sh -c [-aCefinuvx] command_string [ command_name [argument ...] ] 1 4.56.3 Options -c Read commands from the command_string operand. Set the value of special parameter 0 (see 3.5.2) from the value of the command_name operand and the positional parameters ($1, $2, etc.) in sequence from the remaining argument operands. Pointed out by: Kaleb Keithly (kaleb@x.org) Notes: svn path=/head/; revision=11111
* Define CRYPTOBJDIR if secure is being builtMark Murray1995-10-011-0/+10
| | | | Notes: svn path=/head/; revision=11108
* ed/Makefile is able to 'decide' for itself whether to build secure orMark Murray1995-10-011-8/+2
| | | | | | | unceumbered ed. Remove the superfluous .if (...) / .endif Notes: svn path=/head/; revision=11107
* Use the same make technique as passwd and xntpd for the secure ed(1). ThisMark Murray1995-10-011-2/+9
| | | | | | | | will allow the secure/bin/ed directory to be cleaned out and the bin/Makefile to be cleaned up. Notes: svn path=/head/; revision=11106
* Build secure ed if available and allowedAndrey A. Chernov1995-09-291-2/+8
| | | | Notes: svn path=/head/; revision=11065
* Correct the alignment of the tty column, which was affected by my change toPeter Wemm1995-09-262-5/+5
| | | | | | | | | | | allow more than two tty characters. David Greenman pointed out that when a process that had been revoked from it's controlling tty, the "-" sign was detached from any two-character names. Notes: svn path=/head/; revision=11021
* Uncomment out references to FIFOs for the -F and -l options.Mike Pritchard1995-09-261-6/+7
| | | | | | | | | Also mention sockets in the text for -F. Partially obtained from the NetBSD commit mail list. Notes: svn path=/head/; revision=11015
* Fix relocation of job table.Bruce Evans1995-09-211-1/+8
| | | | | | | | | while { sleep 1 & wait; } do echo 1; done corrupted the job table every 4th iteration. Notes: svn path=/head/; revision=10934
* Don't dereference a NULL pointer in the case of a null pipe.David Greenman1995-09-201-2/+3
| | | | | | | | | | e.g.: ls |> foo.out sh now behaves the same as it does under SunOS 4.x for this case. Notes: svn path=/head/; revision=10917
* If mail is received with no from address, invoke sendmail withPaul Traina1995-09-161-1/+3
| | | | | | | | | | | | /usr/sbin/sendmail -f <> dest rather than /usr/sbin/sendmail -f dest. Submitted by: Michael Butler <imb@scgt.oz.au> Obtained from: Eric Allman <eric@cs.berkeley.edu> Notes: svn path=/head/; revision=10824