rillig
42627098be
Fixed wrong use of the <ctype.h> functions by adding (unsigned char) casts.
2005-05-23 08:03:25 +00:00
rillig
4f6457e756
Fixed wrong use of the <ctype.h> functions by adding an explicit conversion
...
to unsigned char. Approved by christos.
2005-04-19 20:14:29 +00:00
simonb
3cebd9325e
White space nit- don't put a space before/after increment/decrement
...
operators.
2005-02-11 06:21:21 +00:00
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
wiz
3eaf37c5c9
Bring in pdksh-5.2.14-patches.2.
...
ChangeLog entry:
Mon Jan 29 10:12:31 NST 2001 Michael Rendell (michael@garfield.cs.mun.ca )
* c_exec.c(execute): added rv_prop flag to prevent if/while/for/...
in the presence of "set -e" from causing the shell to exit.
Example:
set -e
(false && echo hi)
[exits shell though it shouldn't]
ChangeLog and example provided by pdksh maintainer, Michael Rendell.
2001-09-29 15:05:47 +00:00
wiz
456dff6cb8
Spell 'occurred' with two 'r's.
2001-09-16 16:34:23 +00:00
wiz
c52d355d71
"wierd" is weird.
2001-08-20 12:20:01 +00:00
wiz
1e378c4c12
precede, not preceed.
2001-08-20 12:00:46 +00:00
wiz
30b2bf87ed
Various typos in comments (neccessary, sceme, choise, ...).
2001-07-26 15:05:07 +00:00
wiz
40ac848024
Fix various misspellings of compatible/compatibility.
2001-06-11 01:50:48 +00:00
simonb
4f7969814a
Don't build ksh.1 if MKMAN == "no".
2001-05-15 23:50:36 +00:00
wiz
d753ffdad1
environ(7), not (5); add RCS Id; whitespace fixes.
2001-04-09 12:33:22 +00:00
christos
cba68cff4c
remove duplicate declarations, and fix nested externs.
2001-02-04 19:26:04 +00:00
christos
621611e98a
we do have dup2.
2001-02-04 19:25:43 +00:00
christos
d2765ed72b
PR/11361:Matthias Buelow: Apply patch1 from pdksh site.
...
- set -x dumps core (shf.c);
- output of "jobs" command is filled with ^A characters (jobs.c);
- "typeset -r foo=bar" fails saying foo is readonly (var.c).
2000-11-02 01:10:08 +00:00
kleink
8bab1c8bba
$(CPP) -> $(CC) -E
2000-06-26 06:18:07 +00:00
soren
f939de5a66
CLEANFILES+= siglist.out emacs.out
2000-06-22 05:42:22 +00:00
mycroft
f5d7100e26
Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
...
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
jdolecek
83a7edec11
remove debug printf accidentaly left in
1999-11-09 00:01:49 +00:00
jdolecek
3b4b01bddb
in emacs mode, escape the contents of completed word appropriately even
...
in CT_COMPLIST case ("complete and then list (if non-exact)" mode)
Noticed by Soren S. Jorvang <soren@wheel.dk>.
1999-11-08 23:56:41 +00:00
jdolecek
7b61cc94ea
Implement (somewhat enhanced) idea stealed from bash:
...
when completing the filename (either in vi mode with vi-tabcomplete on,
or in emacs mode after double esc), escape any shell special characters
and chars from $IFS with backslash - very handy especially when
dealing with filenames containing spaces
The patch has been sent to maintainer, but I haven't got any reply yet even
after about a month :(
1999-11-02 22:06:45 +00:00
hubertf
b556fc7b2a
make this build with -Werror
1999-10-20 15:49:15 +00:00
hubertf
f3b71361e4
this is now generated automatically
1999-10-20 15:26:41 +00:00
hubertf
48ee8d1290
resolve conflicts
1999-10-20 15:09:58 +00:00
hubertf
07ba439fc9
Import pdksh V5.2.14.
...
Includes lots of bugfixes.
1999-10-20 14:27:32 +00:00
christos
1f3392af64
char->unsigned char casts for is*()
1998-11-04 18:27:20 +00:00
erh
2a1165d74d
Initialize the correct fields when creating an empty command. Fixes bug where a function with no body ( e.g. "testfun () ;" ) would cause ksh to segfault when it was called.
1998-10-09 02:45:34 +00:00
erh
bc642404be
getwd() -> getcwd(,MAXPATHLEN).
1998-10-09 02:42:28 +00:00
thorpej
45e5a86960
Add some braces to make egcs happy.
1998-08-19 01:43:22 +00:00
mycroft
9dc385beb1
Delint.
1998-07-28 05:31:22 +00:00
mycroft
86ff65dc4d
Remove silly prototype.
1998-07-26 14:54:36 +00:00
fair
daa19e5898
change some /dev/tty to paths.h _PATH_TTY
1998-04-07 10:29:50 +00:00
mrg
2d5a1dd04f
- change "register" variables into int's
...
- don't use char as an array index.
1998-03-29 04:39:03 +00:00
mycroft
620e5b5b8b
Deal with GCC warnings.
1998-02-03 07:48:32 +00:00
lukem
015665018a
add dependancies to fix parallel compilation
1997-10-22 01:36:36 +00:00
lukem
8f78590363
remove $Log$ entries
1997-10-20 10:39:26 +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
christos
90647eb832
Fix compiler warnings
...
Add WARNS=1
1997-07-20 17:41:56 +00:00
phil
691627e8a2
Define USETBL to get tbl used in making man page. (Closed PR 3144.)
1997-06-30 19:30:04 +00:00
mycroft
ed67bf81a0
Use DPSRCS.
1997-05-09 13:28:39 +00:00
mycroft
cc4a1553a1
Eliminate bogus redefinitions of standard targets.
1997-05-09 07:50:03 +00:00
perry
2a9ecb70c3
close pr-3111 -- use sh to invoke script instead of executing
1997-01-16 21:17:53 +00:00
tls
2ab2e20cff
RCS ID Police
1997-01-12 19:11:37 +00:00
jtc
614eee469b
import pdksh 5.2.12
1996-12-18 04:50:04 +00:00
jtc
56381415bc
Removed missing.c beacuse NetBSD is not missing any of the functions
...
that it provides.
1996-10-10 14:17:02 +00:00
jtc
87313b5b47
options.h is no longer used
1996-10-10 14:10:39 +00:00
jtc
6f57e37d56
sync with 5.2.11 (now define POSIXLY_CORRECT)
1996-10-09 15:31:59 +00:00
jtc
0de5aac478
import pdksh 5.2.11
1996-10-09 15:29:01 +00:00
jtc
dc22bec48e
autoconf biffed a test --- our stat macros do work
1996-10-09 15:16:44 +00:00
jtc
5a4124868a
import pdksh 5.2.9
1996-10-09 15:12:31 +00:00
jtc
e1b2664cf1
import pdksh 5.2.8
1996-09-21 23:35:13 +00:00