Commit Graph

91 Commits

Author SHA1 Message Date
mrg 69b1acad99 minor KNF nits, space damage. 1999-01-31 08:00:50 +00:00
ross 97f8529d3c Document the bizarre right-to-left grouping of csh expression terms. 1999-01-24 09:44:23 +00:00
itohy e50ba7ea8f Fixed ancient bug in csh(1) "filec" implementation.
We need not wait for a while any longer after pressing ESC or ^D.

Problem description:
If a user types characters during performing completion (ESC)
or listings (^D), the chars are inserted at weird position of
the command line.
This makes the command line unusable and irritates the user.
I noticed this on 386BSD(98), probably six years ago.

This change fixes the bug by implementing salvage of the characters.
The salvaged chars are added at the end of the command line.
An extra ioctl(FIONREAD) is required to work-around a glitch on
kernel tty driver.
1998-12-26 02:11:39 +00:00
kleink 0210c46b17 Built-in kill: also accept symbolic signal names prefixed with "SIG". 1998-12-11 14:28:58 +00:00
thorpej 341bd18b4a Add some braces to make egcs happy. 1998-08-19 01:31:46 +00:00
mycroft ee9e50eacb Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
mycroft 9dc385beb1 Delint. 1998-07-28 05:31:22 +00:00
mycroft 5924694d3a Delint (partially). 1998-07-28 02:47:19 +00:00
mycroft cdbd74da57 Delint (partially). 1998-07-28 02:23:37 +00:00
mycroft ac70c0c5ed Slight code reduction. 1998-07-27 17:55:17 +00:00
mycroft 4d669802e4 const propagation. 1998-07-27 15:25:06 +00:00
mycroft 778e6e0151 const poisoning. 1998-07-26 19:34:10 +00:00
mycroft be432ed479 const poisoning. 1998-07-26 14:49:36 +00:00
kleink fc5d36f8e4 GLOB_QUOTE is dead; per POSIX, backslash quoting of special characters being
enabled is the default behaviour.
1998-06-19 22:58:04 +00:00
msaitoh 07a4bb0c95 fix some bugs. 1998-06-11 00:58:31 +00:00
msaitoh ecf9000778 fix a bug. 1998-05-28 14:56:42 +00:00
msaitoh d5977957e6 fix "/bin/login" to '/usr/bin/login" 1998-05-28 13:35:05 +00:00
kleink 892884f299 * Add support for POSIX "kill [-s signame] pid" syntax; actually fixes PR 5327.
* Complete the "kill -l [exitstatus]" syntax.
* Sync with the documentation and no longer permit the use of full signal
  names in the "kill [-sig] pid" syntax, e.g. -SIGHUP.
1998-05-10 18:32:46 +00:00
fair f7c833c469 KNF + copyright assignment to TNF 1998-05-08 18:43:54 +00:00
fair 8cab837598 fix nroff error per PR#5347 1998-04-27 20:50:37 +00:00
lukem f1a5689fa6 refer to COPTS not CFLAGS 1998-04-13 14:08:27 +00:00
fair 000297a954 Fix PR#3585 - csh printed a negative percentage of CPU used when the total
CPU usage was more than 6 hours (integer overflow problem).
1998-04-08 22:38:18 +00:00
fair 0f668275d6 Fix csh to use <paths.h> _PATH_DEFPATH as the default path, absent a PATH
from the environment.
1998-04-08 22:35:54 +00:00
kleink 67e49b4bed Need <time.h> for time() prototype. 1998-04-01 13:50:14 +00:00
kleink b61a8b646b GLOB_ABEND -> GLOB_ABORTED 1998-03-31 20:45:25 +00:00
mrg a6b580d769 make sincereal "static int" rather than just "static" 1998-03-29 04:36:29 +00:00
christos 20d0140fb0 use obj dirs. 1997-12-21 15:51:20 +00:00
lukem 580476ab8d add dependancy line to fix parallel compilation 1997-10-22 01:22:58 +00:00
enami b130b4f87b - Fix .Nm usage (same of .Nm is replaced with .Sx, .Em, .Ic etc).
- Use .Sx to refer section.
1997-10-20 08:46:18 +00:00
mycroft 6de13662f1 Remove bogus use of S_IFLNK. 1997-10-19 17:38:05 +00:00
mycroft e96e918e60 Use bsd.subdir.mk as appropriate. 1997-10-11 09:34:07 +00:00
christos e230a48b57 CFLAGS->CPPFLAGS 1997-10-10 19:47:50 +00:00
christos 23edbe3557 Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.inc
now that all /bin has been cleaned.
1997-07-20 22:36:20 +00:00
jtc c56d18f4cb /var/spool/mail -> /var/mail 1997-07-09 02:54:38 +00:00
jtc 408b1c68b0 /usr/spool/mail -> /var/spool/mail 1997-07-09 02:37:59 +00:00
christos 8ea378c6ac Rename err.h to errnum.h to avoid collision with err.h
Fix compiler warnings.
1997-07-04 21:23:50 +00:00
pk 6d865e0768 Use .Xr (from PR#3627) 1997-06-23 20:30:24 +00:00
mikel 90490d03b2 fix xrefs: sigvec(2) -> sigaction(2), killpg(2) -> killpg(3). 1997-05-12 08:00:09 +00:00
gwr 10e180cc49 Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr 012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +00:00
mouse 412433b44c alternate -> alternative, per PR 2643 1997-03-08 13:26:20 +00:00
tls 76adbe2bd3 kill register 1997-01-13 17:53:15 +00:00
christos 0805134891 Fix bug reported by Chris Torek: use TCSADRAIN instead of TCSANOW, to avoid
dropping characters.
1996-11-08 19:34:37 +00:00
christos 8af8970502 Quote all imported environment variables, so that we don't core dump with
set term='unknown*'
	./csh
or we don't have security problems with:
	set path=('`/bin/rm -fr *`' /usr/local)
	./csh
Reported by Donn Seeley...
1996-10-31 23:50:53 +00:00
christos 0c75083000 - Use ../usr.bin/printf/printf.c
- Fix built-in which to set the status code correctly.
1996-09-30 20:03:52 +00:00
jtc a29e2412d6 Fix formatting of description of @ command; From PR #2577 1996-06-30 23:16:32 +00:00
christos a8a54fa636 fix bug where
child% suspend
parent% bg
parent% fg
Fg would not work anymore, it would say Suspended (tty input).
1996-02-09 02:28:29 +00:00
jtc 0ab192c94c Update lseek() constants:
L_SET	-> SEEK_SET
	L_INCR	-> SEEK_CUR
	L_XTND	-> SEEK_END
1995-09-27 00:38:38 +00:00
christos ec16f0d3d8 Fixed bug where 'which /bin/csh' reports .//bin/csh, by copying the
current tcsh code.
1995-05-23 19:47:16 +00:00
mycroft 556d212c3d Use POSIX signal semantics. Change p_pid and p_jobid to pid_t's. 1995-04-29 23:21:28 +00:00