Steve Price
856541b91f
Benign | --> || correction.
1996-10-16 02:30:39 +00:00
Steve Price
d1e9927277
Fix a problem with sh that conflicts with the -e
...
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>
1996-10-06 15:17:19 +00:00
Wolfram Schneider
e83201b43a
delete doubled words, e.g.: "the the" -> "the"
1996-10-05 22:27:30 +00:00
Peter Wemm
7081f1bc92
re-activate the printf builtin now that src/usr.bin/printf.c has been
...
tweaked to work as a builtin better (ie: calls the real printf formatting
code, not sh's cut-down out1fmt() function)
1996-10-01 04:59:13 +00:00
Andrey A. Chernov
3043192bc6
Activate LC_CTYPE locale and additionly use !isprint() for 8bit characters
1996-09-30 15:45:36 +00:00
Warner Losh
8d72a3d7f6
Merge in the NetBSD changes to cat.c. These appear to have come from
...
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.
1996-09-28 21:19:27 +00:00
Bruce Evans
e56fdba452
Close files up to getdtablesize() instead of up to NOFILE.
...
csh was one of the 3 programs in /usr/src that (mis)used NOFILE.
1996-09-28 14:32:01 +00:00
Wolfram Schneider
148531ef1e
add forgotten $Id$
1996-09-22 21:56:57 +00:00
Nate Williams
2b240fd84f
ts_sec -> tv_sec
...
ts_nsec -> tv_nsec
1996-09-20 04:45:59 +00:00
Adam David
5ff36b379e
Mend 'exit' without breaking 'exit 1'
...
*blush* %-\
Pointed out by: bruce
1996-09-12 12:41:46 +00:00
Bruce Evans
4d55cbc522
Backed out last change. It broke even `exit 1'.
1996-09-12 02:23:33 +00:00
Peter Wemm
5c817731db
Ok, lets try this again, shall we? It was definatly my mistake, not
...
Steve's.. :-]
1996-09-10 02:42:33 +00:00
Peter Wemm
1018bd8d3c
ack! back these out so I can see what I did wrong. It looks like a
...
patch-by-hand botch, but it sig-11's during make world.
1996-09-10 02:07:27 +00:00
Peter Wemm
18e4c9579e
Fix for PR#1248, sh doesn't expand past ${9}
...
Submitted by: Steve Price <sprice@hiwaay.net>
1996-09-10 01:24:11 +00:00
Adam David
279de1f97b
let the "exit" command return status when it is implicit
1996-09-08 03:12:22 +00:00
Peter Wemm
4e4e09596d
eek, how did that happen? I must have committed something left over from
...
when I was experimenting looking for an alternate format. *blush*
1996-09-03 14:24:44 +00:00
Peter Wemm
4417f6297d
Fix for PR#1287. This makes sh behave sensibly in case statements in the
...
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)
1996-09-03 14:16:06 +00:00
Peter Wemm
16992ff483
Misc cleanups and fixes from Bruce:
...
- 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.
1996-09-03 13:35:11 +00:00
Peter Wemm
8a8c5e4e92
oops, I didn't mean for the unconditional DEBUG code to go in, it's been
...
off in FreeBSD for some time. I realised this a few seconds after the
commit started..
1996-09-01 10:27:49 +00:00
Peter Wemm
aa9caaf657
Merge of 4.4-Lite2 sh source, plus some gcc -Wall cleaning. This is a
...
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
1996-09-01 10:22:36 +00:00
Wolfram Schneider
b8923d4cc0
[HISTORY] command appeared in Version 1 AT&T UNIX
...
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
1996-08-29 18:06:19 +00:00
Adam David
fb1000d678
set error status on exit, to be consistent with manpage and standard commands.
1996-08-27 21:51:48 +00:00
Wolfram Schneider
5a80fb277e
sync copyright with /usr/share/examples/etc/bsd-style-copyright
1996-08-27 20:04:45 +00:00
Wolfram Schneider
a09e5604c5
[HISTORY]
...
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
1996-08-22 16:54:12 +00:00
Andrey A. Chernov
c07cbf9cf8
Take out 0201-0207 range - those characters abused by sh
1996-08-12 22:14:50 +00:00
Andrey A. Chernov
a1a0a1f9c7
Convert to newly added collate compare function
1996-08-12 21:32:15 +00:00
Andrey A. Chernov
c906f8d406
Convert to newly added collate compare function
1996-08-12 19:31:11 +00:00
Andrey A. Chernov
917de9be32
Simplify expression
1996-08-12 12:31:28 +00:00
Andrey A. Chernov
072acff80a
Use collate for alpha character ranges
1996-08-12 02:08:43 +00:00
Andrey A. Chernov
b4814a03fc
Fix unsetenv of locale variable
1996-08-11 23:10:38 +00:00
Andrey A. Chernov
ba726b8a91
Localize it
1996-08-11 22:51:00 +00:00
Andrey A. Chernov
6e0d255e4b
Pick collate info for RE character ranges
1996-08-11 16:59:27 +00:00
Andrey A. Chernov
de727e7d02
Localize it
...
8bit cleanup
1996-08-11 16:48:11 +00:00
Adam David
f3ad46f409
chmod(2) directories once only (was twice)
1996-08-10 15:05:26 +00:00
David Greenman
dc01a4f714
Updated to match kernel changes for timer/run queue.
1996-07-31 09:27:23 +00:00
Wolfram Schneider
5df3108f6a
add a reference to killall(1)
1996-07-03 22:19:50 +00:00
Mike Pritchard
3b818f3a1f
The default swap device is /dev/drum, not /dev/swap
...
as ps.1 states.
Submitted by: Zahemszhky Gabor <zgabor@code.hu>
1996-07-03 22:17:28 +00:00
Mike Pritchard
157f653e98
Fix some minor formatting problems in some examples.
...
Obtained from: Partially obtained from NetBSD-bugs mailing list
1996-07-03 01:28:34 +00:00
Peter Wemm
0164b6d61b
Make %CPU add up closer to 100%.. At least, it now agrees with top.. :-)
...
Pointed out by: bde
1996-06-29 10:25:31 +00:00
Peter Wemm
0cd02d20a1
Fix (I think) the %MEM count in 'ps -u'. It was bogusly taking the
...
vm_rssize (in pages, not bytes), then dividing (bogusly) by the page size,
then using that as a fraction of the total pages.
1996-06-29 08:04:05 +00:00
Jordan K. Hubbard
cd9a2f5c28
Bring in my changes for removing the pestilent obj links (unless you
...
really want them) from /usr/src. This is the final version of the
patches, incorporating the feedback I've received from -current.
1996-06-24 04:26:21 +00:00
Wolfram Schneider
0d917e0587
Add a better TEST script. I was surprised how much can be wrong
...
with program test(1) or builtin test(1).
1996-06-19 00:44:44 +00:00
Poul-Henning Kamp
bd6e0d9485
Backup yacc changes.
1996-06-02 17:06:40 +00:00
Poul-Henning Kamp
fc15a73012
Backout yacc changes
1996-06-02 17:05:48 +00:00
Poul-Henning Kamp
c959cc994a
Use new yacc rules. (I'm fixing the tree as fast as I can :-)
1996-05-30 20:52:26 +00:00
Poul-Henning Kamp
aa0e82cf5e
Use default yacc rule.
1996-05-30 20:44:09 +00:00
Peter Wemm
9ec1e4b123
This commit was generated by cvs2svn to compensate for changes in r15920,
...
which included commits to RCS files with non-trunk default branches.
1996-05-27 01:41:12 +00:00
Peter Wemm
069428af6d
Import the 4.4BSD-Lite2 /bin/sh sources
...
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)
1996-05-27 01:41:12 +00:00
Peter Wemm
7d4b6187df
Nuke the undocumented -F flag, since it doesn't do anything anymore.
...
It used to allow root to hard-link directories (and screw up programs that
expexted the ".." entry to point to the parent dir)
1996-05-24 20:36:16 +00:00
Thomas Gellekum
de64b714f8
Output line count to stdout. Complies to POSIX.2.
...
Reviewed by: joerg
1996-05-23 06:36:34 +00:00