Commit Graph

98 Commits

Author SHA1 Message Date
dsl 7f5b5f6c04 Add (unsigned char) casts to tolower/toupper and iscntrl calls.
Fixes PR 27593
2004-10-28 20:15:36 +00:00
christos 79455d444d Handle RESCUEDIR 2004-08-19 23:00:22 +00:00
christos f6f36c8db2 PR/26339: Pavel Cahyna: the 'fc' command can crash non-interactive ksh
Produce an error message instead.
2004-07-16 18:39:18 +00:00
mycroft 37b5b92c9f Truncate the prompt if too long. Fixes PR 24674, but not with the patch from
there.
2004-07-07 19:46:57 +00:00
mycroft f662a744b6 Cleanup of ksh memory handling from OpenBSD, via Stefan Krueger in PR 24962.
Should also fix:
PR 8153
PR 13301
PR 15256
PR 25084
2004-07-07 19:20:09 +00:00
christos 6acf809e53 understand rlimit sbsize 2004-04-17 15:40:12 +00:00
jdolecek 47b5291b9c rename variable 'history' to 'histlist' to avoid clash with libedit
history() when this program is crunched into /rescue tools

fixes PR bin/24556 by Kouichirou Hiratsuka
2004-02-26 08:24:03 +00:00
wiz d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
lukem 5037f26eb0 don't need -DHAVE_CONFIG_H here 2003-10-26 09:30:55 +00:00
lukem f85d2d1c14 Use ${HOST_SH} instead of `sh'.
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
lukem ddff99b7f4 rework to use the newer _MKMSGCREATE (et al) macros 2003-10-19 04:45:01 +00:00
lukem 046b9ab451 support MAKEVERBOSE 2003-10-19 00:14:16 +00:00
jmmv e3d9d7109f Add ':' to the list of characters to be escaped. Fixes completion problems
when the filename includes this character.
2003-09-11 10:24:57 +00:00
wiz 5526319b35 In emacs mode, when expanding file names containing characters that should
get quoted with <ESC>*, _do_ quote them.
Patch from Federico Schwindt fgsch@openbsd -- thanks!
[rev 1.25 in OpenBSD version of this file]
2003-08-28 19:53:32 +00:00
wiz a420e618d0 Push (into yank buffer) words only if force_push is TRUE;
set force_push to TRUE in x_del_bword and x_del_fword.
Fixes behaviour where <meta-y> would put the previously yanked word in the yank buffer another time.
2003-08-26 09:06:50 +00:00
wiz bd6ed3b8c1 From OpenBSD:
revision 1.21
date: 2003/08/02 19:26:15;  author: fgsch;  state: Exp;  lines: +4 -2
On ESC-y ESC-y (yank-pop), also check that there is something to
insert (some text has been killed before). from otto@, fix bug report 3384.

On yank-pop error (no yank before), reset the index to killstack so
another yank-pop does not mangle the prompt if nothing was yanked, and
to avoid replacing a text when it shouldn't
(yank <something> yank-pop yank-pop).
otto@ ok.
2003-08-26 08:52:03 +00:00
wiz a7f5601ea5 Allow single letters to be yanked, not only words of two or more letters. 2003-08-26 08:40:51 +00:00
wiz 77f8e9c131 Add 'return' statement (and whitespace) to sync with OpenBSD version
of the patch committed in v1.12.
2003-08-26 07:35:21 +00:00
wiz ad30231fc4 From OpenBSD:
revision 1.18
date: 2003/08/22 18:17:10;  author: fgsch;  state: Exp;  lines: +2 -2
in word location, fix forward scanning so it correctly account for any
escaped char and not only spaces.
for "foo (bar.a)" and "foo (bar a)", cd foo\ \(bar.<tab> will correctly
expand to foo\ \(bar.a\).
otto@ and pval@ ok.
2003-08-26 07:28:39 +00:00
wiz 80d20cd1d2 From OpenBSD:
revision 1.23
date: 2003/08/23 02:30:59;  author: fgsch;  state: Exp;  lines: +2 -2
under emacs mode, fix the case when the globbed file and the longest
prefix lenghts are equal ("a .b" and "a ab" by instance).
found and tested by otto@.
2003-08-26 07:27:42 +00:00
wiz ffdf32a762 From OpenBSD:
date: 2000/11/21 22:41:03;  author: millert;  state: Exp;  lines: +2 -1
Add missing break that broke 'kill -s SIGNAME', bug report #1495
Fix from Hiroyuki.HORINOKUCHI@nrj.ericsson.se
2003-08-25 13:23:59 +00:00
lukem a93ea220fc Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
agc 6377cac711 Add NetBSD RCS Ids. 2003-06-23 11:38:51 +00:00
wiz 4b68a236c9 Fix completion of files containing #. From Soren Jacobsen in PR 21486. 2003-05-07 06:39:08 +00:00
wiz c31c26034b Add ` (backquote) to quoted characters for completion. From fgsch@openbsd.
Okayed by christos.
2003-05-06 11:34:01 +00:00
wiz dcc13ddb7d Some grammar and punctuation fixes from jmc@openbsd. 2003-05-01 13:50:58 +00:00
perry 423759aaf3 reimplementation -> re-implementation 2003-03-29 18:38:48 +00:00
kristerw b225d94754 Fix some typos noted by Soren Jacobsen in PR 20793. 2003-03-22 12:13:03 +00:00
dsl 2db0e4fba3 Make 'times' be a proper posix special builtin.
(change agreed by christos and mailed to Michael Rendell)
2003-01-20 08:49:00 +00:00
simonb 276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
wiz 617b132aac Spell output with two ts. 2003-01-04 23:43:02 +00:00
wiz 90c017d88f Fix typo. 2002-12-05 16:52:07 +00:00
jdolecek 0c1316b88d default to "$HOME/.kshrc" if ENV is not set 2002-11-11 19:03:57 +00:00
wiz 71c3607b93 Miscellaneous fixes by Martin Weber (ephaeton at that gmx net thingy). 2002-10-12 00:02:47 +00:00
provos c603c2b26f enable meta key in emacs mode for 7-bit locales. approved thorpej. 2002-10-10 17:41:19 +00:00
wiz 06bd76cf9a parameter, not paramter. By Adrian Mrva. 2002-10-02 15:58:04 +00:00
provos 0d78fff152 complete file names including a ~ correctly. 2002-09-27 13:23:55 +00:00
wiz 6ab45c70b7 Begin new sentences on new lines. From Robert Elz (kre at munnari oz au). 2002-09-26 11:11:17 +00:00
provos a94ce5a752 enable emacs mode, add tab key to do completion in emacs and vi mode.
from millert@openbsd.org.  approved by perry and thorpej.
2002-09-25 02:55:03 +00:00
provos f9b44bb190 change complete-list to first complete and then print a list,
also complete after '=' (dd), and ':' (ssh) and ` (backtick)
improvements from camield@openbsd.org.  approved by perry and thorpej.
2002-09-25 02:41:11 +00:00
jschauma 9f40601644 comment out the (no longer) builtin newgrp 2002-09-20 20:57:58 +00:00
jschauma b186175fa1 We don't have 'newgrp' -> ifdef the builtin alias. This prevents
the shell from unexpectedly dying if a user enters the (nonexistent)
'newgrp' command.  OK'd by perry.
As seen in OpenBSD.
2002-09-20 20:07:09 +00:00
wiz 7b9b4ac6f7 'environment', not 'enviroment' 2002-07-11 10:53:19 +00:00
wiz 1815854042 __STDC__ is always defined on NetBSD. 2002-05-25 23:29:16 +00:00
wiz a57e2bc28e Fix bin/5205 (weird interaction between tbl and man macros). 2002-01-29 15:12:54 +00:00
sjg 84412e9292 Fix some aspects of globbing - in emacs mode at least.
echo ~<ESC><ESC> and $HOME<ESC><ESC> as well as ~/b<ESC><ESC> all
now expand correctly.
2002-01-25 23:40:51 +00:00
jwise 8ce003bad4 Fix a cross reference in man page. This should probably be mandoc-ified
if we are not going to use reachover makefiles for ksh (and given that
pdksh does not update very frequently (at all?  any more?  at the moment?),
it is probably reasonable not to).
2001-11-11 21:09:34 +00:00
lukem 94f08e9869 default to WARNS=1 if not set 2001-11-03 13:39:25 +00:00