summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix (I think) the %MEM count in 'ps -u'. It was bogusly taking thepeter1996-06-291-2/+2
| | | | | vm_rssize (in pages, not bytes), then dividing (bogusly) by the page size, then using that as a fraction of the total pages.
* Bring in my changes for removing the pestilent obj links (unless youjkh1996-06-243-9/+9
| | | | | really want them) from /usr/src. This is the final version of the patches, incorporating the feedback I've received from -current.
* Add a better TEST script. I was surprised how much can be wrongwosch1996-06-192-0/+133
| | | | with program test(1) or builtin test(1).
* Backup yacc changes.phk1996-06-022-5/+4
|
* Backout yacc changesphk1996-06-021-2/+6
|
* Use new yacc rules. (I'm fixing the tree as fast as I can :-)phk1996-05-302-6/+7
|
* Use default yacc rule.phk1996-05-301-7/+3
|
* This commit was generated by cvs2svn to compensate for changes in r15920,peter1996-05-273-0/+168
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import the 4.4BSD-Lite2 /bin/sh sourcespeter1996-05-2766-1222/+2226
| | | | | | | | | | | | | | | | Requested by: joerg (Note, this is mostly going to be conflicts, which is expected. Our entire sh source has a mainline, so this should not change anything except for a few new files appearing. I dont think they are a problem)
* | Nuke the undocumented -F flag, since it doesn't do anything anymore.peter1996-05-241-9/+6
| | | | | | | | | | It used to allow root to hard-link directories (and screw up programs that expexted the ".." entry to point to the parent dir)
* | Output line count to stdout. Complies to POSIX.2.tg1996-05-231-3/+3
| | | | | | | | Reviewed by: joerg
* | ``mv'' -> ``mv -f''wosch1996-05-071-2/+2
| | | | | | | | | | ``rm'' -> ``rm -f'' so mv/rm may not ask for confirmation if you are not root
OpenPOWER on IntegriCloud