summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Fixed `stty [-]extproc'. It set extproc to a semi-random state (alwaysbde1996-12-071-2/+2
| | | | | off if there are no other options, always (?) on if another option that changes the state is processed earlier).
* Bruce says: "You have been programming in the kernel for too long :-)."phk1996-11-135-40/+25
| | | | | | | | | | | | | | | | | and he's right ... I forgot about this floating point stuff you can use in user-land :-) Increase precision of duration to microseconds. No heuristics to avoid overflow in calculation needed - just depend on DBL_MAX being a bit larger than LONG_MAX. Use double instead of `struct timeval' in dd.h so that everything doesn't have to include <sys/time.h>. Fixed style bugs in recent and old FreeBSD changes. Reviewed by: phk Submitted by: bde
* Increase precision of duration to milliseconds.phk1996-11-125-14/+34
| | | | Some heuristics to avoid overflow in calculation attempted.
* Back out rev 1.7 which was to fix PR#1206 (to be reopened).peter1996-11-121-19/+2
| | | | | | | | | | This patch causes too many side effects, one of which bites hard is when interrupting a 'make fetch' in the ports tree (PR#1990). This whole area is a real can of worms.... This most definately should go into 2.2 Reviewed by: steve, bde
* Remove unneeded #include <sys/proc.h>.hsu1996-11-101-2/+1
|
* Replace collate_range_cmp call with its codeache1996-10-311-2/+19
|
* 1) define STATIC as static and not emptyache1996-10-312-4/+22
| | | | 2) replace collate_range_cmp call with its code
* Add the -p (privileged) commandline switchsteve1996-10-294-8/+31
| | | | | | found in bash, zsh, and friends. Reviewed by: joerg
* Build intermediate object files for mkinit, mknodes and mksyntaxbde1996-10-251-6/+19
| | | | | | | | so that simple regresssion tests based on `cmp' work. mkdep still doesn't work right for these tools. They should probably be in separate directories. Sorted dependencies.
* Close PR# 1206. sh(1) now ignores SIGINT and SIGQUITsteve1996-10-221-3/+19
| | | | | | | when a child is forked and the -c commandline switch has been specified. Reviewed by: joerg
* Implement a -c option to ps to display the short command name instead ofpeter1996-10-214-11/+24
| | | | | | | | | the full argument vector. I've bumped into a few things that expected this switch to be present, the most recent was the snmp package in ports. I'm not 100% sure of the origins of this, but Linux has it, so does the "BSD-compatable" version of ps on our SVR4 systems (so I assume SunOS has it too).
* Benign | --> || correction.steve1996-10-161-2/+2
|
* Fix a problem with sh that conflicts with the -esteve1996-10-061-2/+5
| | | | | | | | | flag text in the man page. Now this will work correctly: /bin/sh -ec 'false && true; echo hi' Obtained from: VaX#n8 <vax@linkdead.paranoia.com>
* delete doubled words, e.g.: "the the" -> "the"wosch1996-10-053-6/+6
|
* re-activate the printf builtin now that src/usr.bin/printf.c has beenpeter1996-10-011-2/+2
| | | | | tweaked to work as a builtin better (ie: calls the real printf formatting code, not sh's cut-down out1fmt() function)
* Activate LC_CTYPE locale and additionly use !isprint() for 8bit charactersache1996-09-301-2/+5
|
* Merge in the NetBSD changes to cat.c. These appear to have come fromimp1996-09-281-4/+4
| | | | | | | the 4.4 lite 2 tape as well. There are now only two diffs between NetBSD's cat and FreeBSD's cat: getopt return value is -1 on NetBSD and EOF on FreeBSD. NetBSD has added setlocale calls before anything else.
* Close files up to getdtablesize() instead of up to NOFILE.bde1996-09-281-3/+3
| | | | csh was one of the 3 programs in /usr/src that (mis)used NOFILE.
* add forgotten $Id$wosch1996-09-224-0/+7
|
* ts_sec -> tv_secnate1996-09-201-3/+3
| | | | ts_nsec -> tv_nsec
* Mend 'exit' without breaking 'exit 1'adam1996-09-121-3/+4
| | | | | | *blush* %-\ Pointed out by: bruce
* Backed out last change. It broke even `exit 1'.bde1996-09-121-4/+2
|
* Ok, lets try this again, shall we? It was definatly my mistake, notpeter1996-09-102-17/+33
| | | | Steve's.. :-]
* ack! back these out so I can see what I did wrong. It looks like apeter1996-09-102-31/+15
| | | | patch-by-hand botch, but it sig-11's during make world.
* Fix for PR#1248, sh doesn't expand past ${9}peter1996-09-102-17/+33
| | | | Submitted by: Steve Price <sprice@hiwaay.net>
* let the "exit" command return status when it is implicitadam1996-09-081-2/+4
|
* eek, how did that happen? I must have committed something left over frompeter1996-09-031-4/+4
| | | | when I was experimenting looking for an alternate format. *blush*
* Fix for PR#1287. This makes sh behave sensibly in case statements in thepeter1996-09-0313-49/+56
| | | | | | | | | | | | | | face of aliases. Note, bash doesn't do aliases while running scripts, but "real" ksh does.. Also: Reduce redundant .Nm macros in (unused) bltin/echo.1 nuke error2, it's hardly used. More -Wall cleanups dont do certain history operations if NO_HISTORY defined handle quad_t's from resource limits Submitted by: Steve Price <sprice@hiwaay.net> (minor tweaks by me)
* Misc cleanups and fixes from Bruce:peter1996-09-034-29/+40
| | | | | | | | | | - don't put \n on error() calls, error adds it already. - don't prepend "ulimit" on error() calls in miscbltin.c. - getopt typo on ulimit -p -> -u conversion - get/setrlimit() calls were not being error checked ulimit formatting cleanup from me, use same wording as bash on Bruce's suggestion. Add ulimit arg to output on Joerg's suggestion.
* oops, I didn't mean for the unconditional DEBUG code to go in, it's beenpeter1996-09-012-5/+5
| | | | | off in FreeBSD for some time. I realised this a few seconds after the commit started..
* Merge of 4.4-Lite2 sh source, plus some gcc -Wall cleaning. This is apeter1996-09-0172-2040/+2136
| | | | | | | | | | | | | | merge of parallel duplicate work by Steve Price and myself. :-] There are some changes to the build that are my fault... mkinit.c was trying (poorly) to duplicate some of the work that make(1) is designed to do. The Makefile hackery is my fault too, the depend list was incomplete because of some explicit OBJS+= entries, so mkdep wasn't picking up their source file #includes. This closes a pile of /bin/sh PR's, but not all of them.. Submitted by: Steve Price <steve@bonsai.hiwaay.net>, peter
* [HISTORY] command appeared in Version 1 AT&T UNIXwosch1996-08-2912-15/+60
| | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
* set error status on exit, to be consistent with manpage and standard commands.adam1996-08-271-2/+6
|
* sync copyright with /usr/share/examples/etc/bsd-style-copyrightwosch1996-08-271-2/+25
|
* [HISTORY]wosch1996-08-221-3/+7
| | | | | | | | | cat command appeared in Version 1 AT&T UNIX, not Version 6 Apparently the cat man page was the first written man page Obtained from: A Quarter Century of UNIX, Peter H. Salus [BUGS] fix a typo
* Take out 0201-0207 range - those characters abused by shache1996-08-122-5/+6
|
* Convert to newly added collate compare functionache1996-08-121-36/+4
|
* Convert to newly added collate compare functionache1996-08-121-40/+4
|
* Simplify expressionache1996-08-121-2/+2
|
* Use collate for alpha character rangesache1996-08-121-3/+37
|
* Fix unsetenv of locale variableache1996-08-111-5/+5
|
* Localize itache1996-08-114-12/+96
|
* Pick collate info for RE character rangesache1996-08-111-2/+2
|
* Localize itache1996-08-112-12/+14
| | | | 8bit cleanup
* chmod(2) directories once only (was twice)adam1996-08-101-6/+5
|
* Updated to match kernel changes for timer/run queue.dg1996-07-311-2/+2
|
* add a reference to killall(1)wosch1996-07-031-1/+2
|
* The default swap device is /dev/drum, not /dev/swapmpp1996-07-031-2/+2
| | | | | | as ps.1 states. Submitted by: Zahemszhky Gabor <zgabor@code.hu>
* Fix some minor formatting problems in some examples.mpp1996-07-031-3/+3
| | | | Obtained from: Partially obtained from NetBSD-bugs mailing list
* Make %CPU add up closer to 100%.. At least, it now agrees with top.. :-)peter1996-06-291-3/+4
| | | | Pointed out by: bde
OpenPOWER on IntegriCloud