Up to [local] / src / bin / ksh
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.86 / (download) - annotate - [select for diffs], Tue Aug 27 19:27:19 2024 UTC (10 months, 3 weeks ago) by op
Branch: MAIN
CVS Tags: OPENBSD_7_7_BASE,
OPENBSD_7_7,
OPENBSD_7_6_BASE,
OPENBSD_7_6,
HEAD
Changes since 1.85: +2 -3 lines
Diff to previous 1.85 (colored)
inline `start' and simplify; from/ok millert@
Revision 1.85 / (download) - annotate - [select for diffs], Tue Aug 27 18:45:58 2024 UTC (10 months, 3 weeks ago) by op
Branch: MAIN
Changes since 1.84: +8 -8 lines
Diff to previous 1.84 (colored)
ksh: use strtonum() in findhistrel() ok millert@, deraadt@
Revision 1.84 / (download) - annotate - [select for diffs], Sun Oct 27 15:02:19 2019 UTC (5 years, 8 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7
Changes since 1.83: +1 -2 lines
Diff to previous 1.83 (colored)
No need for <sys/uio.h> as writev(2) isn't used any more.
Revision 1.83 / (download) - annotate - [select for diffs], Sun Oct 27 14:58:52 2019 UTC (5 years, 8 months ago) by jca
Branch: MAIN
Changes since 1.82: +15 -7 lines
Diff to previous 1.82 (colored)
Don't fail hard if we can't preallocate history storage. Using alloc.c for the history array brings no value and prevents easy handling of memory shortage. Switch to plain reallocarray and keep running if HISTSIZE is too big. The allocation is still done upfront with no sanity checking, it would probably be nicer to allocate space as needed. Issue reported by thomas@habets.se who suggested a different approach.
Revision 1.82 / (download) - annotate - [select for diffs], Fri Jun 28 13:34:59 2019 UTC (6 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE,
OPENBSD_6_6
Changes since 1.81: +2 -2 lines
Diff to previous 1.81 (colored)
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
Revision 1.81 / (download) - annotate - [select for diffs], Tue Nov 20 07:02:23 2018 UTC (6 years, 8 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5
Changes since 1.80: +17 -7 lines
Diff to previous 1.80 (colored)
Fix the case where the recursion detection isn't reset when the command is interrupted. Lots of back and forth with anton@ OK jca@, tb@, anton@
Revision 1.80 / (download) - annotate - [select for diffs], Mon Jan 15 22:30:38 2018 UTC (7 years, 6 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3
Changes since 1.79: +3 -4 lines
Diff to previous 1.79 (colored)
Don't try to open HISTFILE if the variable is unset. str_val returns null, not NULL, if the variable isn't set. The erroneous check means that we later tried to open(""). ok millert@ tb@ anton@ benno@
Revision 1.79 / (download) - annotate - [select for diffs], Mon Jan 15 14:58:05 2018 UTC (7 years, 6 months ago) by jca
Branch: MAIN
Changes since 1.78: +1 -25 lines
Diff to previous 1.78 (colored)
Stop pretending we support building ksh without EDIT/HISTORY support ok anton@
Revision 1.78 / (download) - annotate - [select for diffs], Sat Jan 6 16:28:58 2018 UTC (7 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.77: +2 -2 lines
Diff to previous 1.77 (colored)
Bring back the sign compare changes, this time with a fix from otto@ that fixes the issues seen on hppa. OK deraadt@ otto@
Revision 1.77 / (download) - annotate - [select for diffs], Thu Jan 4 19:06:16 2018 UTC (7 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored)
Back out sign compare changes that appear to cause problems on hppa. Requested by deraadt@
Revision 1.76 / (download) - annotate - [select for diffs], Mon Jan 1 19:45:56 2018 UTC (7 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.75: +2 -2 lines
Diff to previous 1.75 (colored)
Add WARNINGS=yes to ksh and fix the resulting sign compare warnings. OK tb@
Revision 1.75 / (download) - annotate - [select for diffs], Tue Nov 21 17:57:41 2017 UTC (7 years, 8 months ago) by tb
Branch: MAIN
Changes since 1.74: +2 -1 lines
Diff to previous 1.74 (colored)
Initialize *histbase to NULL to fix a bus error in emacs editing mode found by anton. To reproduce, run "env EDITOR=emacs MALLOC_OPTIONS=J ksh" then press "^[_". ok anton, jca
Revision 1.74 / (download) - annotate - [select for diffs], Mon Oct 23 15:43:38 2017 UTC (7 years, 9 months ago) by jca
Branch: MAIN
Changes since 1.73: +1 -3 lines
Diff to previous 1.73 (colored)
Kill needless rewind(3) call in hist_init() We may have read two bytes from the file, but history_load() needs to call rewind(3) anyway. ok benno@
Revision 1.73 / (download) - annotate - [select for diffs], Mon Oct 23 15:41:39 2017 UTC (7 years, 9 months ago) by jca
Branch: MAIN
Changes since 1.72: +22 -7 lines
Diff to previous 1.72 (colored)
Skip (and warn about) overlong history lines. With much input from Ori Bernstein and anton@; ok anton@ (and benno@ on a previous version).
Revision 1.72 / (download) - annotate - [select for diffs], Wed Oct 18 15:41:25 2017 UTC (7 years, 9 months ago) by jca
Branch: MAIN
Changes since 1.71: +4 -6 lines
Diff to previous 1.71 (colored)
The return value of this function isn't used. ok anton@ tb@
Revision 1.71 / (download) - annotate - [select for diffs], Thu Sep 7 19:08:32 2017 UTC (7 years, 10 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.70: +12 -4 lines
Diff to previous 1.70 (colored)
Keep histptr inside of the allocated history array histptr == history -1 means that the history is empty, but the behavior is then undefined. Allocate an extra array entry to work around this. Input & ok tb@
Revision 1.70 / (download) - annotate - [select for diffs], Thu Aug 31 11:10:03 2017 UTC (7 years, 10 months ago) by jca
Branch: MAIN
Changes since 1.69: +5 -1 lines
Diff to previous 1.69 (colored)
ignoredups implementation quirk Reminded by tb@
Revision 1.69 / (download) - annotate - [select for diffs], Wed Aug 30 17:08:45 2017 UTC (7 years, 10 months ago) by jca
Branch: MAIN
Changes since 1.68: +37 -5 lines
Diff to previous 1.68 (colored)
Implement HISTCONTROL ignoredups & ignorespace features ignoredups: don't save the current line if it is identical to the last history line. ignorespace: don't save the current line if it starts with a space ok anton@ millert@
Revision 1.68 / (download) - annotate - [select for diffs], Mon Aug 28 19:41:55 2017 UTC (7 years, 10 months ago) by jca
Branch: MAIN
Changes since 1.67: +2 -6 lines
Diff to previous 1.67 (colored)
Don't bother setting freed history lines to NULL. Dead code that could send the wrong hint to an unsuspicious reader. The code should walk use 'history' & 'histptr' to walk the array. ok millert@, "go for it" tb@
Revision 1.67 / (download) - annotate - [select for diffs], Mon Aug 28 19:39:13 2017 UTC (7 years, 10 months ago) by jca
Branch: MAIN
Changes since 1.66: +4 -9 lines
Diff to previous 1.66 (colored)
Put history_write() in line with other functions that walk history One method is enough: only access history lines between 'history' and 'histptr'. Pointers outside these bounds might be invalid. ok millert@, "go for it" tb@
Revision 1.66 / (download) - annotate - [select for diffs], Sun Aug 27 17:10:32 2017 UTC (7 years, 10 months ago) by jca
Branch: MAIN
Changes since 1.65: +23 -7 lines
Diff to previous 1.65 (colored)
Free history entries when resizing/reloading Cluebat & ok tb@
Revision 1.65 / (download) - annotate - [select for diffs], Sat Aug 26 12:34:32 2017 UTC (7 years, 10 months ago) by jca
Branch: MAIN
Changes since 1.64: +6 -7 lines
Diff to previous 1.64 (colored)
Don't lose the latest history line & don't crash when shrinking histsize ok tb@
Revision 1.64 / (download) - annotate - [select for diffs], Fri Aug 11 19:37:58 2017 UTC (7 years, 11 months ago) by tb
Branch: MAIN
Changes since 1.63: +22 -1 lines
Diff to previous 1.63 (colored)
Check whether the first two characters of $HISTFILE are the magic characters of the old binary ksh history file. In that case ignore the history file after displaying an error once. Prevents annoying repeated 'history file is corrupt' messages in $HOME on NFS setups suffered by henning and makes the migration from the old to the new history file format safer. ok henning, tweaks & ok jca
Revision 1.63 / (download) - annotate - [select for diffs], Tue Aug 1 14:30:05 2017 UTC (7 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.62: +13 -5 lines
Diff to previous 1.62 (colored)
Disable ksh VI-editing mode on the install media. We need the space savings.
Revision 1.62 / (download) - annotate - [select for diffs], Mon Jul 24 23:56:37 2017 UTC (8 years ago) by tb
Branch: MAIN
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)
Fix off-by-one error introduced in the previous commit. ok jca
Revision 1.61 / (download) - annotate - [select for diffs], Mon Jul 24 22:28:09 2017 UTC (8 years ago) by jca
Branch: MAIN
Changes since 1.60: +5 -6 lines
Diff to previous 1.60 (colored)
Prettify, simplify Input & ok tb@
Revision 1.60 / (download) - annotate - [select for diffs], Mon Jul 24 22:26:12 2017 UTC (8 years ago) by jca
Branch: MAIN
Changes since 1.59: +4 -3 lines
Diff to previous 1.59 (colored)
Use memmove instead of a hand-rolled loop A tad faster in my HISTFILE "benchmarks". ok tb@
Revision 1.59 / (download) - annotate - [select for diffs], Mon May 29 13:09:17 2017 UTC (8 years, 1 month ago) by tb
Branch: MAIN
Changes since 1.58: +138 -346 lines
Diff to previous 1.58 (colored)
Change the mmap(2)-based binary history file with lots of magic and a tendency for corruption to a simpler plaintext version. To convert your current ksh history to plaintext, issue fc -ln 1 | sed 's/^ //' > ~/ksh_hist.txt before upgrading and use ksh_hist.txt as HISTFILE after the upgrade. Original patch by marco in 2011. Ported to current during g2k16 by me. Testing, bugfixes and improvements in joint work with natano. Additional testing by anton and mestre. Includes some tweaks by anton. Committing now to shake out remaining bugs before 6.2 is cut. ok deraadt, mestre, anton, sthen
Revision 1.58 / (download) - annotate - [select for diffs], Wed Aug 24 16:09:40 2016 UTC (8 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.57: +8 -3 lines
Diff to previous 1.57 (colored)
Use writev(2) to write history records using a single syscall. OK deraadt@
Revision 1.57 / (download) - annotate - [select for diffs], Wed Aug 24 13:32:17 2016 UTC (8 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.56: +16 -5 lines
Diff to previous 1.56 (colored)
Avoid recursively calling c_fc(). Fixes a core dump from "r r" and other edge cases found by gsoares@. OK tb@ gsoares@
Revision 1.56 / (download) - annotate - [select for diffs], Wed Dec 30 09:07:00 2015 UTC (9 years, 6 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)
rename global "e" to genv to avoid accidental shadowing and aliasing. ok millert nicm tb
Revision 1.55 / (download) - annotate - [select for diffs], Mon Dec 14 13:59:42 2015 UTC (9 years, 7 months ago) by tb
Branch: MAIN
Changes since 1.54: +6 -1 lines
Diff to previous 1.54 (colored)
Move system headers from sh.h to those files that actually need them. ok mmcc@ a while ago
Revision 1.54 / (download) - annotate - [select for diffs], Mon Dec 14 06:09:43 2015 UTC (9 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)
Remove a superfluous macro. No binary change. ok tb@
Revision 1.53 / (download) - annotate - [select for diffs], Mon Nov 2 16:38:35 2015 UTC (9 years, 8 months ago) by mmcc
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)
Another aresize() -> areallocarray(). ok nicm@
Revision 1.52 / (download) - annotate - [select for diffs], Sun Nov 1 15:38:53 2015 UTC (9 years, 8 months ago) by mmcc
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)
Add uses of areallocarray(). mksh and Bitrig ksh already have similar functions. With help from Theo Buehler. ok nicm@
Revision 1.51 / (download) - annotate - [select for diffs], Wed Oct 21 15:47:41 2015 UTC (9 years, 9 months ago) by mmcc
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)
Remove a couple of unhelpful defines. ok nicm@
Revision 1.50 / (download) - annotate - [select for diffs], Wed Oct 21 15:20:37 2015 UTC (9 years, 9 months ago) by mmcc
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)
Don't bother casting NULL. ok nicm@
Revision 1.49 / (download) - annotate - [select for diffs], Mon Oct 19 14:42:16 2015 UTC (9 years, 9 months ago) by mmcc
Branch: MAIN
Changes since 1.48: +3 -1 lines
Diff to previous 1.48 (colored)
Move string.h include from sh.h to the files that use it. ok nicm@
Revision 1.48 / (download) - annotate - [select for diffs], Mon Oct 19 02:15:45 2015 UTC (9 years, 9 months ago) by mmcc
Branch: MAIN
Changes since 1.47: +3 -2 lines
Diff to previous 1.47 (colored)
Apply style(9) to header includes. ok nicm@
Revision 1.47 / (download) - annotate - [select for diffs], Fri Oct 9 19:36:27 2015 UTC (9 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.46: +2 -3 lines
Diff to previous 1.46 (colored)
remove null check before afree. from Michael McConville
Revision 1.46 / (download) - annotate - [select for diffs], Thu Oct 8 16:41:26 2015 UTC (9 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.45: +6 -7 lines
Diff to previous 1.45 (colored)
stop trying to gift history files to the original owner. instead, don't open history files that don't belong to us. probably much safer. ok deraadt
Revision 1.45 / (download) - annotate - [select for diffs], Thu Oct 8 15:54:59 2015 UTC (9 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.44: +12 -20 lines
Diff to previous 1.44 (colored)
little cleanup from Michael McConville, mostly related to stale comments.
Revision 1.44 / (download) - annotate - [select for diffs], Thu Sep 17 21:39:54 2015 UTC (9 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.43: +8 -8 lines
Diff to previous 1.43 (colored)
More (foo *)0 -> NULL, from Michael McConville. No binary change.
Revision 1.43 / (download) - annotate - [select for diffs], Thu Sep 17 14:21:33 2015 UTC (9 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)
Remove unnecessary casts, from Michael McConville. No binary change.
Revision 1.42 / (download) - annotate - [select for diffs], Tue Sep 15 18:15:05 2015 UTC (9 years, 10 months ago) by tedu
Branch: MAIN
Changes since 1.41: +5 -5 lines
Diff to previous 1.41 (colored)
correct spelling of NULL from (char *)0. from Michael McConville. ok md5
Revision 1.41 / (download) - annotate - [select for diffs], Tue Sep 1 13:12:31 2015 UTC (9 years, 10 months ago) by tedu
Branch: MAIN
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored)
remove casts and null checks before free. from Michael McConville ok deraadt
Revision 1.40 / (download) - annotate - [select for diffs], Thu Nov 20 15:22:39 2014 UTC (10 years, 8 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.39: +1 -2 lines
Diff to previous 1.39 (colored)
remove sys/file.h includes in favor of fcntl.h where needed. ok deraadt guenther
Revision 1.39 / (download) - annotate - [select for diffs], Wed May 19 17:36:08 2010 UTC (15 years, 2 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6,
OPENBSD_5_5_BASE,
OPENBSD_5_5,
OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3,
OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)
properly keep track of the line number after a trap. this fixes pr 6195. diff from manuel giraud, thanks. ok kili@
Revision 1.38 / (download) - annotate - [select for diffs], Sat May 1 21:09:23 2010 UTC (15 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)
Correct a comment; from dawedawe (at) gmx.de
Revision 1.37 / (download) - annotate - [select for diffs], Thu Jul 2 16:29:15 2009 UTC (16 years ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE,
OPENBSD_4_7,
OPENBSD_4_6_BASE,
OPENBSD_4_6
Changes since 1.36: +5 -3 lines
Diff to previous 1.36 (colored)
avoid infinite recursion if unlink fails. reported by Stefan Pettersson ok theo, millert@
Revision 1.36 / (download) - annotate - [select for diffs], Tue May 20 00:30:30 2008 UTC (17 years, 2 months ago) by fgsch
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)
cast pointer arithmetic to unsigned so we can behave correctly on underflows. fixes fc -l 1 in my box where line is 1667511151. krw@ ok.
Revision 1.35 / (download) - annotate - [select for diffs], Mon May 29 18:22:24 2006 UTC (19 years, 1 month ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE,
OPENBSD_4_3,
OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0
Changes since 1.34: +2 -1 lines
Diff to previous 1.34 (colored)
Implement \$ and \# expansion for PS1. Whoever thought it a clever idea to assign a special meaning to "\$" -- two chars that are already (very) special -- deserves a spanking.
Revision 1.34 / (download) - annotate - [select for diffs], Fri Mar 17 16:30:13 2006 UTC (19 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.33: +4 -2 lines
Diff to previous 1.33 (colored)
Simplify savefd() by removing the "noclose" flag and make noclose behavior the default. Almost all uses of savefd() are followed by an implicit or explicit close. OK otto@
Revision 1.33 / (download) - annotate - [select for diffs], Sun Mar 12 00:26:58 2006 UTC (19 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)
might as well make ksh_getopt() match real getopt(), ie. get rid of that stupid EOF concept that was never true. adobriyan@gmail
Revision 1.32 / (download) - annotate - [select for diffs], Sun Dec 11 18:53:51 2005 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE,
OPENBSD_3_9
Changes since 1.31: +1 -10 lines
Diff to previous 1.31 (colored)
remove unused variables and functions
Revision 1.31 / (download) - annotate - [select for diffs], Sun Jul 31 16:12:52 2005 UTC (19 years, 11 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE,
OPENBSD_3_8
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)
say goodbye to creat(). okay deraadt@
Revision 1.30 / (download) - annotate - [select for diffs], Wed Mar 30 17:16:37 2005 UTC (20 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.29: +35 -35 lines
Diff to previous 1.29 (colored)
lots of indentation cleanup, now ksh is readable like our other code. double checked to make sure no binaries change, and eyed by niallo
Revision 1.29 / (download) - annotate - [select for diffs], Wed Dec 22 17:14:34 2004 UTC (20 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE,
OPENBSD_3_7
Changes since 1.28: +11 -11 lines
Diff to previous 1.28 (colored)
Use stdbool.h instead of rolling our own bools.
Revision 1.28 / (download) - annotate - [select for diffs], Mon Dec 20 11:34:26 2004 UTC (20 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.27: +33 -76 lines
Diff to previous 1.27 (colored)
Ansification plus some minor knf. No binary change on i386 and sparc64, binary change in lex.o on macppc due to introduction of dopprompt() prototype. ok millert@
Revision 1.27 / (download) - annotate - [select for diffs], Sat Dec 18 21:25:44 2004 UTC (20 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.26: +9 -9 lines
Diff to previous 1.26 (colored)
deregister
Revision 1.26 / (download) - annotate - [select for diffs], Sat Dec 18 20:55:52 2004 UTC (20 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.25: +26 -212 lines
Diff to previous 1.25 (colored)
Remove unused OS dependent #ifdef blocks, #defines and macro abstraction. First step in making the ksh code easier to read. From Matthias Kilian
Revision 1.25 / (download) - annotate - [select for diffs], Sun Dec 12 06:53:13 2004 UTC (20 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.24: +22 -3 lines
Diff to previous 1.24 (colored)
csh-style ! history completion, which can be activated by using set -o csh-history (off by default) this is not feature complete, and likely never will be. no ^ and ! has some oddities ... ksh's internal history stuff has got some very odd behaviours that are rather nasty ok various developers
Revision 1.24 / (download) - annotate - [select for diffs], Tue Aug 3 12:44:59 2004 UTC (20 years, 11 months ago) by danh
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE,
OPENBSD_3_6
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)
only neuter fc builtin if initial shell is not interactive ok miod@
Revision 1.23 / (download) - annotate - [select for diffs], Fri Jul 16 14:47:31 2004 UTC (21 years ago) by miod
Branch: MAIN
Changes since 1.22: +6 -1 lines
Diff to previous 1.22 (colored)
Neuter the fc builtin on non-interactive shells; inspired by NetBSD PR#26339. ok millert@
Revision 1.22 / (download) - annotate - [select for diffs], Sun May 18 01:02:42 2003 UTC (22 years, 2 months ago) by jsyn
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE,
OPENBSD_3_5,
OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)
fix prototype; ok millert@
Revision 1.21 / (download) - annotate - [select for diffs], Sat May 17 00:10:52 2003 UTC (22 years, 2 months ago) by fgsch
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)
use MAP_FAILED rather than -1; millert@ ok.
Revision 1.20 / (download) - annotate - [select for diffs], Fri May 16 19:58:57 2003 UTC (22 years, 2 months ago) by jsyn
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)
fix several constant overflows, remove the strerror prototype (shouldn't be there), and cleanup some whitespace; help from, and okay millert@
Revision 1.19 / (download) - annotate - [select for diffs], Tue Apr 15 08:35:34 2003 UTC (22 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)
cull warnings
Revision 1.18 / (download) - annotate - [select for diffs], Sun Apr 6 23:39:17 2003 UTC (22 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +4 -3 lines
Diff to previous 1.17 (colored)
strlcat; ok from various people
Revision 1.17 / (download) - annotate - [select for diffs], Fri Feb 28 09:45:09 2003 UTC (22 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)
typos; from Brian Poole
Revision 1.16 / (download) - annotate - [select for diffs], Wed Nov 27 20:53:25 2002 UTC (22 years, 8 months ago) by pvalchev
Branch: MAIN
Changes since 1.15: +3 -5 lines
Diff to previous 1.15 (colored)
Make fc -e work in "sh-mode" (shell invoked as /bin/sh or -o sh option) as well; matches Solaris. "can't hurt anything" marc@ Original report from PR user/2883
Revision 1.15 / (download) - annotate - [select for diffs], Wed Oct 23 14:23:15 2002 UTC (22 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)
Move a cast from LHS to RHS to quiet a "cast from pointer to integer of different size" warning on 64-bit platforms.
Revision 1.14 / (download) - annotate - [select for diffs], Fri Sep 6 19:45:14 2002 UTC (22 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE,
OPENBSD_3_2
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)
no , at end of enum
Revision 1.13 / (download) - annotate - [select for diffs], Sat Aug 3 17:00:09 2002 UTC (22 years, 11 months ago) by marc
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)
register -> int
Revision 1.12 / (download) - annotate - [select for diffs], Thu Oct 12 10:51:13 2000 UTC (24 years, 9 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE,
OPENBSD_3_1,
OPENBSD_3_0_BASE,
OPENBSD_3_0,
OPENBSD_2_9_BASE,
OPENBSD_2_9,
OPENBSD_2_8_BASE,
OPENBSD_2_8
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)
Compare the return from mmap with MAP_FAILED, do not cast to int and comapre with -1.
Revision 1.11 / (download) - annotate - [select for diffs], Tue Jun 15 01:18:34 1999 UTC (26 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE,
OPENBSD_2_7,
OPENBSD_2_6_BASE,
OPENBSD_2_6
Changes since 1.10: +4 -5 lines
Diff to previous 1.10 (colored)
patches from pdksh 5.2.13.11
Revision 1.10 / (download) - annotate - [select for diffs], Sun Jan 10 17:55:02 1999 UTC (26 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE,
OPENBSD_2_5
Changes since 1.9: +4 -2 lines
Diff to previous 1.9 (colored)
sync with pdksh-unstable-5.2.13.6
Revision 1.9 / (download) - annotate - [select for diffs], Thu Oct 29 04:09:20 1998 UTC (26 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)
Bug fixes from pdksh-unstable-5.2.13.4, including "official" versions of some that we had already fixed locally. o typeset -f FUNC doesn't print follows command (and expression) substitutions. o when re-allocating memory, too much may be copied from old memory. o set -o printed some options sans names. o emacs mode: <esc>. in very fist command causes core dump. o pdksh dumps core after a cd command. o typeset -i reports on array elements that have no value (at&t ksh reports on array base name - no index). o ulimit -ctn unlimittttted kills shell (resource exceeded). o ". /dev/null" says access denied. o flag field in aliases incorrectly changed (all flags set instead of clearing ISSET) in exec.c(flushcom). o ${#array[*]} prints largest index instead of number of (set) elements in an array (ksh88 does the former). o sys_siglist[] doesn't always have NSIG non-null entries...
Revision 1.8 / (download) - annotate - [select for diffs], Thu Jun 25 19:01:58 1998 UTC (27 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE,
OPENBSD_2_4
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)
pdksh-5.2.13 + local changes
Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 19 13:58:42 1997 UTC (28 years, 1 month ago) by kstailey
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE,
OPENBSD_2_3
Changes since 1.6: +12 -12 lines
Diff to previous 1.6 (colored)
back out
Revision 1.6 / (download) - annotate - [select for diffs], Wed Jun 18 22:42:35 1997 UTC (28 years, 1 month ago) by kstailey
Branch: MAIN
Changes since 1.5: +13 -13 lines
Diff to previous 1.5 (colored)
(foo *)0 -> NULL
Revision 1.5 / (download) - annotate - [select for diffs], Thu Jan 2 18:16:52 1997 UTC (28 years, 6 months ago) by downsj
Branch: MAIN
Changes since 1.4: +3 -5 lines
Diff to previous 1.4 (colored)
Revert HISTFILE. If anyone wants a differently named history file, they can set it in their environment.
Revision 1.4 / (download) - annotate - [select for diffs], Thu Jan 2 17:37:26 1997 UTC (28 years, 6 months ago) by downsj
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)
After discussing $_ with the maintainer, revert ksh behaviour and completely eliminate it from sh.
Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 2 09:34:00 1997 UTC (28 years, 6 months ago) by downsj
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)
Add FSH (set -o sh), initialize it if we're /bin/sh, and add the first use: don't set $_ if we're non-interactive.
Revision 1.2 / (download) - annotate - [select for diffs], Sun Dec 29 12:24:05 1996 UTC (28 years, 7 months ago) by graichen
Branch: MAIN
Changes since 1.1: +5 -3 lines
Diff to previous 1.1 (colored)
change the name of the history file from .pdksh_hist to .ksh_history this way it is clearer where it comes from (pdksh is ksh in OpenBSD) and it's more consistent with other shells (bash - .bash_history and i think FreeBSD's sh also used something like .sh_history)
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Aug 14 06:19:11 1996 UTC (28 years, 11 months ago) by downsj
Branch: pdksh
CVS Tags: pdksh-527
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)
Import pdksh 5.2.7.
Revision 1.1 / (download) - annotate - [select for diffs], Wed Aug 14 06:19:11 1996 UTC (28 years, 11 months ago) by downsj
Branch: MAIN
Initial revision